About increment !! | SoloLearn: Learn to code for FREE!

+2

About increment !!

#include <stdio.h> int main() { int a=1; printf("%d %d %d",a,a++,++a); return 0; } I thought that this one should print 3 2 2 ...... but this code print 3 2 3 !!!!!! WHY !!

11/21/2019 3:18:41 AM

Partha Sarathi

1 Answer

New Answer

+3

https://www.sololearn.com/Discuss/2074582/?ref=app