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

01 finally i will have 2

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sizeof array in c?

990


What are header files and explain what are its uses in c programming?

1070


How can I avoid the abort, retry, fail messages?

1086


Explain the difference between structs and unions in c?

961


Explain what are run-time errors?

1043


What is structure padding in c?

1059


Are bit fields portable?

1110


What is the role of this pointer?

995


How do you use a pointer to a function?

1029


Who developed c language?

1042


What is a program flowchart?

1126


Why ca not I do something like this?

972


What is oops c?

1117


What Is The Difference Between Null And Void Pointer?

1158


What is maximum size of array in c?

994