fork download
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4. int a[3]={1,4,5};
  5. int k,l,m;
  6.  
  7. k = *(a+1)+1;
  8. l = *(a+(*a+1));
  9. m = a[2]+1-*(a+1);
  10.  
  11. printf("k=%d, l=%d, m=%d",k,l,m);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
k=5, l=5, m=2