How can I make a program in c to print 'Hello' without
using semicolon in the code?

Answer Posted / madhu

int main()
{
if(printf("Hello"))
{

}
}

Answer 2nd is correct;

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most efficient way to store flag values?

689


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

717


What does sizeof function do?

612


Why should I prototype a function?

640


Which is the best website to learn c programming?

582






Can you assign a different address to an array tag?

700


What does typedef struct mean?

661


If fflush wont work, what can I use to flush input?

615


What are pointers? Why are they used?

630


Is sizeof a keyword in c?

582


write a progrmm in c language take user interface generate table using for loop?

1574


What is a function simple definition?

618


What is 1d array in c?

600


In a switch statement, what will happen if a break statement is omitted?

602


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

666