C - Operators - Discussion

You Are Here :: Home > C > Operators - Discussion

 



Q.

What are the values of p and q after the following statement has been executed?

for (p = q = 0; p < 3; p++) q += p;

A. p is 2, q is 0 B. p is 0, q is 0
C. p is 2, q is 3 D. p is 3, q is 3

Answer: Option D
Explaination:

 


No Explanation








Discussion

Your Comments Goes here...
NameDiscussion