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 make it pause before closing the program output window?
Explain the difference between ++u and u++?
What do you mean by dynamic memory allocation in c? What functions are used?
What the different types of arrays in c?
Is flag a keyword in c?
Difference between malloc() and calloc() function?
How can you check to see whether a symbol is defined?
What is the easiest sorting method to use?
Explain about C function prototype?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What are pointers? Why are they used?
Explain the difference between malloc() and calloc() function?
What is declaration and definition in c?
What is the difference between union and structure in c?
What is #include stdio h and #include conio h?