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

please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch

2 Answers  


What is %s and %d in c?

0 Answers  


Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….

1 Answers  


what is a far pointer

12 Answers   ABB, DRDO, ITI, Maruti Suzuki, Steel Plant, TCS, Toyota, Vivo Mobiles,


WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES

1 Answers  






Why can't I perform arithmetic on a void* pointer?

0 Answers  


What are valid operations on pointers?

0 Answers  


what is the full form of c language

9 Answers   Satyam, TCS, VNC,


What is the difference between fread and fwrite function?

0 Answers  


Describe the modifier in c?

0 Answers  


#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(“%d” ,a[i]); }

8 Answers  


for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????

7 Answers  


Categories