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

15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

2 Answers   CTS,


What is substring in c?

0 Answers  


Can a variable be both static and volatile in c?

0 Answers  


what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }

1 Answers  


Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

5 Answers   Accenture,






What is the purpose of clrscr () printf () and getch ()?

0 Answers  


What is the use of linkage in c language?

0 Answers  


Is c dynamically typed?

0 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


write a program to generate address labels using structures?

0 Answers   SJC,


What is an arrays?

0 Answers  


LOGIC OF Bodmas?

1 Answers  


Categories