Q:

What is the output of the following program?

#include int tmp=20;main( ){printf("%d ",tmp);func( );printf("%d ",tmp);}func( ){static int tmp=10;printf("%d ",tmp);}

(A) 20 10 10
(B) 20 10 20
(C) 20 20 20
(D) 10 10 10

ISRO

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.