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 / vijay r15

error undefined
function fork and wait

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it acceptable to declare/define a variable in a c header?

1179


What are qualifiers and modifiers c?

1064


How can you avoid including a header more than once?

1024


What does calloc stand for?

1244


What does %p mean c?

1120


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

1181


What is the method to save data in stack data structure type?

1147


What is the benefit of using const for declaring constants?

1104


What is structure padding and packing in c?

1124


How can I read a binary data file properly?

1247


What are the types of functions in c?

1036


Which is better pointer or array?

1071


Explain high-order and low-order bytes.

1169


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

2013


What is operator precedence?

1282