0
1.3kviews
Study the following C program

Program

void main () {

    int a= 0;

    for ( ; a ;); a++; 

    }

What will be the value of the variable a, on the execution of the above program.

A] 1

B] 0

C] -1

D] none of these

1 Answer
0
38views

What will be the value of the variable a, on the execution of the above program.

A] 1

B] 0

C] -1

D] none of these

Ans:- A] 1
a++ increments the value of a by 1
Value of a would be 1 on execution of a program.

Please log in to add an answer.