The code is::::: if(condition)
Printf("Hello");
Else
Printf("World");
What will be the condition in if in such a way that both
Hello and world are printed in a single attempt?????? Single
Attempt in the sense... It must first print "Hello" and it
Must go to else part and print "World"..... No loops,
Recursion are allowed........................

Answer Posted / manjunath.goudar

//#include<stdio.h>
main()
{
if(1)
printf("hello");
else;
printf("world");
}

Is This Answer Correct ?    7 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are its uses in c programming?

590


What is hungarian notation? Is it worthwhile?

694


Explain what is a stream?

606


Which are low level languages?

630


Which of these functions is safer to use : fgets(), gets()? Why?

632






What is meant by recursion?

631


What is pragma c?

608


Explain what is wrong with this program statement?

619


Is it fine to write void main () or main () in c?

544


Explain the advantages of using macro in c language?

575


What is the use of bit field?

636


When is the “void” keyword used in a function?

830


What are qualifiers?

615


Is it possible to use curly brackets ({}) to enclose single line code in c program?

793


Why C language is a procedural language?

615