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

Answer Posted / rajeev

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

For if statement compiler does not expect semi colon.

Is This Answer Correct ?    55 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a const pointer?

837


Why is struct padding needed?

854


What is the benefit of using const for declaring constants?

833


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1493


Why use int main instead of void main?

887


There seem to be a few missing operators ..

840


What is spark map function?

842


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2544


What are the types of type qualifiers in c?

871


Explain what is the difference between #include and #include 'file' ?

820


What are the types of operators in c?

839


What is the difference between typedef struct and struct?

878


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1879


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2494


What are disadvantages of C language.

899