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 = 0;
- foo(n);
- printf("n = %d \n", n);
- }
- ////////////////////////////////////////////////////
- void foo(int n)
- {
- n = n + 77;
- }
- /*
- #include <stdio.h>
- int foo();
- int add(int n1, int n2);
- void f_2(const char *p);
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 44;
- printf("SONY \n" );
- printf("77 \n" );
- printf("%d \n", 55 );
- printf("%d \n", n ); n = foo();
- printf("n = %d \n", n ); n = add(11, 12);
- printf("Summa = %d \n", n);
- f_2("SONY_Pictures");
- scanf("%d", &n);
- }
- //////////////////////////////////////////////////////
- void f_2(const char *p)
- {
- printf("%s\n", p);
- }
- ////////////////////////////////////////////////////
- int add(int n1, int n2) //
- {
- int n3 = n1 + n2;
- return n3;
- }
- ////////////////////////////////////////////////////
- int foo()
- {
- return 7711;
- }
- */
- /*
- #include <stdio.h>
- int n = 123456789;
- printf("Hello, World !");
- printf("\nn = %d \n", n);
- getchar();
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement