Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void foo(int n);
- ///////////////////////////////////////////
- int main()
- {
- int n1 = 123,
- n2 = 5;
- int *p = &n1; printf("p = %7d\n", p);
- p = &n2; printf("p = %7d\n", *p);
- foo(n1);
- return 0;
- }
- ////////////////////////////////////////////
- void foo(int nDima)
- {
- printf("n = %7d\n", nDima);
- }
- /*
- #include <stdio.h>
- ///////////////////////////////////////////
- int main()
- {
- int n1 = 123,
- n2 = 5;
- int *p = &n1; printf("p = %d\n", p);
- p = &n2; printf("p = %d\n", *p);
- return 0;
- }
- */
- /*
- #include <stdio.h>
- ///////////////////////////////////////////
- int main()
- {
- int n1 = 123,
- n2 = 5;
- int *p = &n1;
- printf("p = %d\n", p);
- p = &n2;
- printf("p = %d\n", p);
- return 0;
- }
- */
- // scanf("%d", &n);
- // printf("SONY = %d, %.2f", n, 3.0);
- /*
- #include <stdio.h>
- ///////////////////////////////////////////
- int main()
- {
- int n;
- scanf("%d", &n);
- printf("SONY = %d, %.2f", n, 3.0);
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement