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 / gg
#include<stdio.h>
main()
{
if(printf("hello")==0)
printf("hello");
else
printf("world");
}
Think is there any Other.....
| Is This Answer Correct ? | 62 Yes | 10 No |
Post New Answer View All Answers
What is the use of getchar functions?
What is the right way to use errno?
Explain data types & how many data types supported by c?
What is an arrays?
Explain about the functions strcat() and strcmp()?
Why string is used in c?
How many types of operators are there in c?
What is c token?
Can we change the value of constant variable in c?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Where static variables are stored in memory in c?
Explain what is operator promotion?
Explain what is the difference between functions abs() and fabs()?
What is a const pointer in c?
Can we access array using pointer in c language?