Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int value;
- int *address;
- value=10;
- address=&value;
- printf("Value is %d\n", value); //printing value using variable;
- printf("Value is %d\n", *address); //printing value using address;
- printf("Address is %d\n", address); //printing address
- printf("Address is %d\n", &value); //printing address using variable
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement