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
Are the outer parentheses in return statements really optional?
What is difference between structure and union in c?
What is function in c with example?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Is there a way to compare two structure variables?
What is difference between structure and union in c programming?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is clrscr ()?
Differentiate between null and void pointers.
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What does node * mean?
Write a program to print all permutations of a given string.
What is NULL pointer?
Which is better between malloc and calloc?
What is difference between class and structure?