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 / abdur rab

#include <stdio.h>

int main ( int argc, char* argv[] )
{
if ( !printf("Hello") )
printf ("Hello");
else printf (" World");
}

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a simple code fragment that will swap the values of two variables num1 and num2.

1289


What is the advantage of an array over individual variables?

1241


How do you define a string?

1103


How can I do peek and poke in c?

1082


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1035


Do array subscripts always start with zero?

1304


How can I ensure that integer arithmetic doesnt overflow?

1173


What is the difference between malloc() and calloc() function in c language?

1081


What's the right way to use errno?

1149


What is wild pointer in c?

1078


What are the applications of c language?

1081


Explain what is the difference between functions abs() and fabs()?

1187


how to create duplicate link list using C???

2560


Is javascript written in c?

1065


Once I have used freopen, how can I get the original stdout (or stdin) back?

1076