Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char ch1='A';
- int n1=100;
- //show the charcter memory location
- printf(" value of ch1 = %c\t", ch1);
- printf("Address of ch1 = %p\n",&ch1);
- //show the integer memory location
- printf(" value of n1 = %d\t", n1);
- printf("Address of n1 = %p\n",&n1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement