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 write data files which can be read on other machines with different word size, byte order, or floating point formats?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is a union?
write an algorithm to display a square matrix.
What is an array? What the different types of arrays in c?
How we can insert comments in a c program?
How many levels deep can include files be nested?
What is pointer to pointer in c language?
Hi can anyone tell what is a start up code?
What is c language and why we use it?
How can I implement sets or arrays of bits?
What are types of functions?
Define macros.
Explain the binary height balanced tree?
Who is the main contributor in designing the c language after dennis ritchie?