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

What is the use of getchar functions?

1185


What is the right way to use errno?

1057


Explain data types & how many data types supported by c?

1085


What is an arrays?

1078


Explain about the functions strcat() and strcmp()?

1053


Why string is used in c?

1009


How many types of operators are there in c?

1039


What is c token?

1068


Can we change the value of constant variable in c?

1061


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1514


Where static variables are stored in memory in c?

1003


Explain what is operator promotion?

1087


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

1187


What is a const pointer in c?

1132


Can we access array using pointer in c language?

1089