Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- /////////////////////////////////////////////////
- int main() //
- {
- int n1 = 12; // lkjkljlkj
- int n2 = 4; // lkl;k; ;lk;lk;
- n2 = 41;
- char c = 'S';
- printf(" n1 = %d\n", n1);
- printf("address n1 = %d\n", &n1);
- printf(" n2 = %d\n", n2);
- printf("address n2 = %d\n", &n2);
- int *p = &n1;
- // p = &n2;
- printf(" n2 = %d\n", *p);
- printf("address n2 = %d\n", p);
- return 0;
- }
- /*
- #include <stdio.h>
- /////////////////////////////////////////////////
- int main() //
- {
- int n1 = 12; // lkjkljlkj
- int n2 = 4; // lkl;k; ;lk;lk;
- n2 = 41;
- char c = 'S';
- printf(" n1 = %d\n", n1);
- printf("address n1 = %d\n", &n1);
- printf("size of n1 = %d\n", sizeof(char));
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement