int yx = 1;void f( ) { int x = 2; yx = x + 1;}void g( ) { static int x =3; yx = x + 1; x = x + 1;}void main( ){int i;for (i = 0; i < 5; i++){f( );g( );}printf("%d", yx);}What is the output produced by above code?
A
7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
8
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
10
No worries! We‘ve got your back. Try BYJU‘S free classes today!