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

Write a program to find whether the given number is prime or not?

6 Answers  


How can I get the current date or time of day in a c program?

0 Answers  


Differentiate between static and dynamic modeling.

0 Answers   Wipro,


how to get starting address of a running C program

3 Answers  


write a program to produce the following output; ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A

17 Answers   ABC, College School Exams Tests,






What does p mean in physics?

0 Answers  


Explain what are linked list?

0 Answers  


Why is sizeof () an operator and not a function?

0 Answers  


struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

1 Answers   Wipro,


What is the use of typedef in c?

0 Answers  


difference between the array and linked list general difference related to memory

2 Answers  


What is the sizeof () a pointer?

0 Answers  


Categories