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 / vaibhav

int a=5,b=5;
if(a==5)
printf("hello");
else;
printf("world");

Is This Answer Correct ?    4 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we open a binary file in Read/Write mode in C?

676


Are the variables argc and argv are always local to main?

569


Explain what is wrong with this statement? Myname = ?robin?;

995


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

575


What is malloc() function?

634






How can you invoke another program from within a C program?

612


What is strcpy() function?

654


How can I dynamically allocate arrays?

588


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

818


What is an identifier?

621


Write a code to generate divisors of an integer?

637


number of times a digit is present in a number

1540


Mention four important string handling functions in c languages .

620


Which is best book for data structures in c?

594


Can include files be nested?

627