+ 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 !!

21st Nov 2019, 3:18 AM
Partha Sarathi
Partha Sarathi - avatar
1 Resposta