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 manipulate strings of multibyte characters?
What is line in c preprocessor?
What is a constant and types of constants in c?
What is the advantage of a random access file?
i got 75% in all semester am i eligible for your company
Differentiate between full, complete & perfect binary trees.
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Write a program to swap two numbers without using a temporary variable?
What does *p++ do?
Why should I prototype a function?
Here is a neat trick for checking whether two strings are equal
What is a global variable in c?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What do you mean by command line argument?