fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int *po,ban[5],i;
  6.  
  7. po=&ban[0];
  8. for(i=0;i<5;i++){
  9. *(po+i)=i; /*<=====*/
  10. }
  11. for(i=0;i<5;i++){
  12. printf("%d ", ban[i]);
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
0 1 2 3 4