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 / hari nair
What 'bout this???
If(printf("Hello")
{
printf("Hello");
}
else
printf("World");
//printf returns the no. of arg printed, as no arg printed in if condition, goes straight to the else clause....
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
How can I ensure that integer arithmetic doesnt overflow?
In c language can we compile a program without main() function?
Is array name a pointer?
What is c++ used for today?
Write a program for finding factorial of a number.
What is a spanning Tree?
main() { printf("hello"); fork(); }
What is abstract data structure in c?
What is a pointer variable in c language?
Did c have any year 2000 problems?
What are disadvantages of C language.
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Explain what are the advantages and disadvantages of a heap?
Explain what are compound statements?