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


Please Help Members By Posting Answers For Below Questions

What are data types in c language?

578


shorting algorithmS

1789


Why are all header files not declared in every c program?

592


Is return a keyword in c?

587


What is the use of getch ()?

616






What is the correct code to have following output in c using nested for loop?

601


What is the c language function prototype?

633


What is unsigned int in c?

547


Explain what is the difference between null and nul?

644


Explain what are multidimensional arrays?

590


What is the data segment that is followed by c?

598


I need previous papers of CSC.......plz help out by posting them.......

1809


How can a program be made to print the name of a source file where an error occurs?

719


What is the correct declaration of main?

663


What is a substring in c?

576