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 / hari nair

What 'bout this???

If(printf("Hello")
{
printf("Hello");
}
else
printf("World");


//printf returns the no. of arg printed, as no arg printed in if condition, goes straight to the else clause....

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c preprocessors?

1185


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3683


What is the difference between c and python?

1165


what are the different storage classes in c?

1177


How is a null pointer different from a dangling pointer?

1017


In which language linux is written?

1223


What is the meaning of && in c?

1013


How many keywords (reserve words) are in c?

1136


What is pass by value in c?

1067


What is conio h in c?

1046


how can use subset in c program and give more example

1989


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1105


What are the 4 types of unions?

1034


Explain how can I open a file so that other programs can update it at the same time?

1105


Why c is called free form language?

1020