fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[5]={10,20,30,40,50};
  5.  
  6. int *p=a;
  7.  
  8. printf("%d\n",a[2]);
  9. printf("%d",*p);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
30
10