2,776 views
2 votes
2 votes
#include <stdio.h>

main()

{

int a = 1;

printf("size of a is %d, ", sizeof(++a));

printf("value of a is %d", a);

};

 

size of a = 2

value of a = 1 am i right

1 Answer

5 votes
5 votes
It depends on platform.

you can't say it will always return 2,it may return 4 or something else.It depends on the size of integer on particular platform.

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2