Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / srikanth

int main()
{
if(fork())
{
printf("hello");
}
else
{
printf("world");
}
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the syntax and purpose of a switch statement in C.

1100


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

1004


what are # pragma staments?

2041


What is pivot in c?

1024


What is the condition that is applied with ?: Operator?

1127


What are high level languages like C and FORTRAN also known as?

1168


What are the different data types in C?

1199


What is boolean in c?

1088


Why doesnt long int work?

1035


Do variables need to be initialized?

1037


Describe newline escape sequence with a sample program?

1114


What are structure members?

1090


what do you mean by enumeration constant?

1011


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1082


When should the register modifier be used? Does it really help?

963