Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void foo(int *p);
- ///////////////////////////////////////////
- int main()
- {
- int n = 7;
- foo(&n);
- printf("n = %d\n", n);
- }
- void foo(int *p)
- {
- *p = *p + 10;
- }
- /*
- #include <stdio.h>
- int n; // 32 бита = 4 Байта
- double f;
- ///////////////////////////////////////////
- int main()
- {
- printf("%d\n", sizeof(float) );
- }
- /
- // 1 Байт = 8 бит
- // %00000000 = 0
- // %00000001 = 1
- // %00000010 = 2
- // %00000011 = 3
- // %00000100 = 4
- // %00000101 = 5
- // %00000110 = 6
- // %00000111 = 7
- /*
- #include <stdio.h>
- ///////////////////////////////////////////
- int main()
- {
- int n = 1026;
- int *p = &n;
- int &r23987_SONY = n;
- printf("address n = %d\n", &r23987_SONY);
- printf("address n = %d\n", &n );
- printf("address n = %d\n", *p );
- }
- */
- /*
- #include <stdio.h>
- ///////////////////////////////////////////
- int main()
- {
- int n = 26;
- int *p = &n;
- int &r = n;
- printf("address n = %d\n", &r);
- printf("address n = %d\n", &n);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement