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 #line?

1029


What is difference between structure and union in c programming?

1055


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

1692


Explain why can’t constant values be used to define an array’s initial size?

1335


What is the purpose of 'register' keyword?

1075


In a switch statement, what will happen if a break statement is omitted?

1036


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1968


How can I open a file so that other programs can update it at the same time?

1160


What is the difference between local variable and global variable in c?

1181


How can I ensure that integer arithmetic doesnt overflow?

1121


Explain what is the difference between null and nul?

1105


What is difference between structure and union?

1098


How can you allocate arrays or structures bigger than 64K?

1105


Why should I prototype a function?

1150


What is signed and unsigned?

1036