fork(3) download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int age =25;
  5. int *ptr =&age;
  6. printf("The value of variable is %d\n",age);
  7. printf("The address of variable is %d \n",ptr);
  8. printf("The value of variable is %d",*ptr);
  9. }
  10.  
Runtime error #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
The value of variable is 25
The address of variable is -1075497540 
The value of variable is 25