write a “Hello World” program in “c” without using a semicolon?
Answers were Sorted based on User's Feedback
Answer / rajeev
int main()
{
if(printf("hello world"))
}
For if statement compiler does not expect semi colon.
Is This Answer Correct ? | 55 Yes | 18 No |
Answer / prakash.k.r
#include<stdio.h>
void main()
{
if(printf("Hello World"))
{
}
}
printf() fn is available in the stdio header file, and so it
must be loaded. Using int main without return stmt is not
good. If any other solution, plz add your answer.
Is This Answer Correct ? | 16 Yes | 1 No |
Answer / mahesh
#include<stdio.h>
void main()
{
if(printf("Hello World"))
{
}
}
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / latiff
int main()
{
if(printf("hello world"))
}
In if statement compiler does not expect semicolon.
Is This Answer Correct ? | 6 Yes | 4 No |
Answer / prashant
sir, i can not give the answer of this question.
Is This Answer Correct ? | 4 Yes | 17 No |
What is include directive in c?
write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised
Why c++ is called c++ and not c+?
Is there anything like an ifdef for typedefs?
What are type modifiers in c?
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }
/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*
What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none
What is the c value paradox and how is it explained?
What is the difference between void main() and void main (void) give example programme?
What will be your course of action for a push operation?
how to add numbers without using arithmetic operators.