Advertisement
mhdew

Basic Practice 1

Jun 8th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int value;
  6.     int *address;
  7.  
  8.     value=10;
  9.     address=&value;
  10.  
  11.     printf("Value is %d\n", value); //printing value using variable;
  12.     printf("Value is %d\n", *address); //printing value using address;
  13.     printf("Address is %d\n", address); //printing address
  14.     printf("Address is %d\n", &value); //printing address using variable
  15.  
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement