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...

What is the output of the following program

#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}

Answer Posted / guest

0101010101

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string in c language?

1077


Explain how do you sort filenames in a directory?

985


Find MAXIMUM of three distinct integers using a single C statement

1015


What are the uses of a pointer?

1104


What is a stream in c programming?

1086


What does %p mean?

1037


What is the difference between exit() and _exit() function?

995


What is #define used for in c?

1018


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1482


what are the different storage classes in c?

1122


p*=(++q)++*--p when p=q=1 while(q<=6)

1700


Where register variables are stored in c?

913


Explain what is the benefit of using an enum rather than a #define constant?

1172


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1231


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1016