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 anonymous asked Jun 18, 2017 anonymous 2.8k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply arch commented Aug 24, 2017 reply Follow Share why value of a is 1? there is increment so a should be 2? 0 votes 0 votes set2018 commented Aug 24, 2017 reply Follow Share size of depends on platform but value must be 2 becoz is pre increment 0 votes 0 votes Please log in or register to add a comment.
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. junaid ahmad answered Jun 18, 2017 junaid ahmad comment Share Follow See 1 comment See all 1 1 comment reply anonymous commented Jun 18, 2017 reply Follow Share mere me 2 ara tha ok thanks , ans : 4 ku dia ha got it –1 votes –1 votes Please log in or register to add a comment.