Open In App

C | Operators | Question 13

Like Article
Like
Save
Share
Report

C




#include<stdio.h>
int main(void)
{
  int a = 1;
  int b = 0;
  b = a++ + a++;
  printf(\"%d %d\",a,b);
  return 0;
}


(A)

3 6

(B)

Compiler Dependent

(C)

3 4

(D)

3 3



Answer: (B)

Explanation:

It is compiler dependent as different compilers takes different bytes for integers.


Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads