What is the output of the following program?

main( )

{

                int a = 10;

                if ((fork ( ) == 0))

                a++;

                printf (“%d\n”, a );

}

1
10 and 11
2
10
3
11
4
11 and 11

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation