fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int val = 1234;
  5. int *ptr = &val;
  6. int pointedto = *ptr;
  7. printf("The value pointed to by ptr is: %d\n", *ptr);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
The value pointed to by ptr is: 1234