fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a=0;
  6. int b=0;
  7.  
  8. b =++a;
  9.  
  10. printf("代入後にインクリメントしたのでbの値は%dです。\n",b);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5252KB
stdin
Standard input is empty
stdout
代入後にインクリメントしたのでbの値は1です。