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

#include<stdio.h>
main()
{
if(printf("hello")==0)
printf("hello");
else
printf("world");
}

Think is there any Other.....

Is This Answer Correct ?    62 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between native and cross compilers

2083


What is function what are the types of function?

951


Why is it important to memset a variable, immediately after allocating memory to it ?

2005


How do you define a string?

1050


Can a program have two main functions?

1065


Why main is not a keyword in c?

1177


Explain how can you be sure that a program follows the ansi c standard?

1399


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1193


Can we change the value of constant variable in c?

1008


When should you not use a type cast?

1072


If errno contains a nonzero number, is there an error?

1296


Explain the Difference between the New and Malloc keyword.

1081


What are linked lists in c?

1088


How #define works?

1051


Explain what is output redirection?

1139