fork(3) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=5;
  6. int b=10;
  7. printf("a++= %d\n",a++);
  8. printf("a= %d\n",a);
  9. printf("++b =%d\n",++b);
  10. printf("以下是++i的for迴圈\n");
  11. for(int i=0;i<=5;++i){
  12. printf("%d\n",i);
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4264KB
stdin
Standard input is empty
stdout
a++= 5
a= 6
++b =11
以下是++i的for迴圈
0
1
2
3
4
5