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 / dinakaran gct
#include<stdio.h>
void main()
{
if(1)
{
printf("HELLO!");
goto HERE;
}
else
{
HERE:
printf("HAI....");
}
}
| Is This Answer Correct ? | 18 Yes | 19 No |
Post New Answer View All Answers
What is the difference between declaring a variable and defining a variable?
What is an operator?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What are called c variables?
What does node * mean?
For what purpose null pointer used?
When should we use pointers in a c program?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is selection sort in c?
Is null equal to 0 in sql?
What is the difference between array_name and &array_name?
Why is c used in embedded systems?
What is data structure in c and its types?
Write a code to generate a series where the next element is the sum of last k terms.