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

01010101010101

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of structure pointer in c?

783


Explain 'bus error'?

753


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

816


What is the purpose of ftell?

798


Explain can the sizeof operator be used to tell the size of an array passed to a function?

770






When should the const modifier be used?

829


How to explain the final year project as a fresher please answer with sample project

701


What is a null string in c?

774


What are the main characteristics of c language describe the structure of ac program?

915


What is array within structure?

807


What is nested structure in c?

777


What are Macros? What are its advantages and disadvantages?

839


What does sizeof return c?

790


in iso what are the common technological language?

1830


Which are low level languages?

821