Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void foo(int n);
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 77;
- printf("address n = %7d\n", &n );
- foo(n);
- }
- ////////////////////////////////////////////////////
- void foo(int n)
- {
- printf("address n = %7d\n", &n );
- printf(" n = %7d\n", n );
- }
- /*
- #include <stdio.h>
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 77, y;
- char c = 'F';
- printf("size of c = %7d\n", sizeof(c) );
- printf(" n = %7d\n", n );
- printf("address n = %7d\n", &n );
- }
- */
- /*
- #include <stdio.h>
- int n, // lkujlijhioj
- y, // jlkjkjk
- v,
- nSumm;
- int foo(int n, int y);
- ////////////////////////////////////////////////////
- int main() //
- {
- n = 10;
- y = 16;
- printf("n = %d\n", n);
- v = foo(n, y);
- printf("%d\n", foo(n, y));
- printf("%d\n", v);
- }
- /////////////////////////////////////////////////////
- int foo(int n, int y)
- {
- nSumm = n + y;
- return nSumm;
- }
- */
- // 1) printf("n = %d, y = %d", n, y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement