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........................
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vaibhav
int a=5,b=5;
if(a==5)
printf("hello");
else;
printf("world");
Is This Answer Correct ? | 4 Yes | 28 No |
Answer / manjunath.goudar
//#include<stdio.h>
main()
{
if(1)
printf("hello");
else;
printf("world");
}
Is This Answer Correct ? | 7 Yes | 33 No |
Why c is faster than c++?
what is answer for perfect number????????????????
what is the use of c program?
4 Answers Synergy, Web Synergies,
What does sizeof return c?
What is the scope of an external variable in c?
Which built-in library function can be used to match a patter from the string?
when user give a number it multiply with 9 without useing '+' and '*' oprator
4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above
What is the difference between getch() and getche()?
Explain null pointer.
Can a variable be both const and volatile?
What is the difference between a free-standing and a hosted environment?