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

Write a C program in Fibonacci series.

1046


What is variables in c?

983


Can you apply link and association interchangeably?

1071


What are preprocessor directives in c?

1032


Write a program to print “hello world” without using semicolon?

1076


Can a pointer be static?

1021


What is the sizeof () a pointer?

924


writ a program to compare using strcmp VIVA and viva with its output.

1975


Is it fine to write void main () or main () in c?

964


What is equivalent to ++i+++j?

1039


cavium networks written test pattern ..

4026


What is the purpose of ftell?

1034


Why do we need a structure?

979


What are the valid places to have keyword “break”?

1039


difference between native and cross compilers

2080