Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int number;
- int *p=&number;
- printf("%d\n", p);
- printf("%d\n",&number);
- }
- /*
- #include <stdio.h>
- #include <string.h>
- char sz[99] = "SONY";
- void foo(char *p); // Заголовок
- ////////////////////////////////////////////////////
- int main() //
- {
- printf("%s\n", sz);
- foo(sz);
- printf("%s\n", sz);
- }
- ////////////////////////////////////////////////////
- void foo(char *p) // Прототип
- {
- int n = strlen(p);
- // printf("n = %d\n", n);
- for(int i = 0; i < n; i++)
- {
- p[i] = p[i]+1;
- }
- }
- */
- /*
- #include <stdio.h>
- int n1 = 6,
- *p = &n1,
- &r = n1,
- n2 = *p;
- ////////////////////////////////////////////////////
- int main() //
- {
- }
- */
- /*
- #include <stdio.h>
- int n1 = 6,
- n2 = 1,
- n3;
- ////////////////////////////////////////////////////
- int main() //
- {
- n3 = n1 | n2;
- printf("n3 = %d\n", n3);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement