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

Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

650


i want to know the procedure of qualcomm for getting a job through offcampus

1919


Is there a way to switch on strings?

607


Which is an example of a structural homology?

766


What are the string functions? List some string functions available in c.

594






Are global variables static in c?

660


What are the rules for identifiers in c?

579


Explain can you assign a different address to an array tag?

632


what are non standard function in c

1420


What is a void pointer? When is a void pointer used?

614


Write a program to check whether a number is prime or not using c?

565


What are the advantages of union?

617


Did c have any year 2000 problems?

644


Is c still used?

589


What is string function c?

558