1.

What’s going to happen when we compile and run the following C program snippet?#include "stdio.h"int main(){int a = 10;int b = 15;printf("=%d",(a+1),(b=a+2));printf(" %d=",b);return 0;}(A) =11 15=(B) =11 12=(C) Compiler Error due to (b=a+2) in the first printf().(D) No compile error but output would be =11 X= where X would depend on compiler implementation.

Answer»


Discussion

No Comment Found

Related InterviewSolutions