write a “Hello World” program in “c” without using a semicolon?

Answers were Sorted based on User's Feedback



write a “Hello World” program in “c” without using a semicolon?..

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

write a “Hello World” program in “c” without using a semicolon?..

Answer / bitan

int main(){
if(printf("Hello World")){}
}

Is This Answer Correct ?    35 Yes 4 No

write a “Hello World” program in “c” without using a semicolon?..

Answer / saranya

void main()
{
if(printf("hello world"))
{
}
}

Is This Answer Correct ?    19 Yes 1 No

write a “Hello World” program in “c” without using a semicolon?..

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

write a “Hello World” program in “c” without using a semicolon?..

Answer / mahesh

#include<stdio.h>
void main()
{
if(printf("Hello World"))
{
}

}

Is This Answer Correct ?    5 Yes 0 No

write a “Hello World” program in “c” without using a semicolon?..

Answer / latiff

int main()
{
if(printf("hello world"))
}
In if statement compiler does not expect semicolon.

Is This Answer Correct ?    6 Yes 4 No

write a “Hello World” program in “c” without using a semicolon?..

Answer / saranya

int main()
{
if(printf("Hello world"))
{

}

}

Is This Answer Correct ?    4 Yes 2 No

write a “Hello World” program in “c” without using a semicolon?..

Answer / manish

int main()
{
if(printf("Hello World"))
}

Is This Answer Correct ?    1 Yes 1 No

write a “Hello World” program in “c” without using a semicolon?..

Answer / prashant

sir, i can not give the answer of this question.

Is This Answer Correct ?    4 Yes 17 No

Post New Answer

More C Interview Questions

What is include directive in c?

0 Answers  


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

3 Answers  


Why c++ is called c++ and not c+?

9 Answers   EBS,


Is there anything like an ifdef for typedefs?

0 Answers  


What are type modifiers in c?

0 Answers  






main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }

6 Answers  


/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*

6 Answers  


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

9 Answers   IBM,


What is the c value paradox and how is it explained?

0 Answers  


What is the difference between void main() and void main (void) give example programme?

0 Answers  


What will be your course of action for a push operation?

0 Answers  


how to add numbers without using arithmetic operators.

14 Answers   TCS,


Categories