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

What is the role of && operator in a program code?

1134


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2230


Write a program to print fibonacci series without using recursion?

1219


Explain what is the concatenation operator?

1232


Where are the auto variables stored?

1208


What will be your course of action for a push operation?

1154


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1181


What is the auto keyword good for?

1231


What are the Advantages of using macro

1221


What is a function in c?

1682


What is union and structure in c?

1289


What does %d do in c?

1010


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3607


What is the difference between typedef struct and struct?

1164


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1786