can we print any string in c language without using
semicolon(;)(terminator) in whole program.

Answer Posted / vinnu bhardwaj

main()
{
if(printf("Hello world"))
{}
}
//Here the {} act as a blank compound statement. But it is
//not mandatory to put some simple statements in it which
//require a semicolon. There are many more such answers to
//this question but the basic funda will be same

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is event driven software and what is procedural driven software?

1988


In C language what is a 'dangling pointer'?

618


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1610


What are structures and unions? State differencves between them.

588


What does c mean before a date?

562






What is the benefit of using const for declaring constants?

561


What is meant by gets in c?

572


what are bit fields? What is the use of bit fields in a structure declaration?

1467


What is define directive?

613


What is logical error?

584


What are called c variables?

553


Which is the memory area not included in C program? give the reason

1481


Array is an lvalue or not?

604


How can I find out how much free space is available on disk?

611


Why double pointer is used in c?

548