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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is binary tree in c?

719


What is a structure and why it is used?

719


What is a scope resolution operator in c?

843


Explain can you assign a different address to an array tag?

743


How can I get random integers in a certain range?

690






What does != Mean in c?

684


What is printf () in c?

666


What is call by value in c?

653


What is header file definition?

698


c language interview questions & answer

1564


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1952


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

763


Can a file other than a .h file be included with #include?

776


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2473


What is the purpose of the statement: strcat (S2, S1)?

721