Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int foo(int*);
- ///////////////////////////////////////////////////
- int main() //
- {
- int arr[77]; //= { 0, 1, 2};
- for(int i = 0; i < 20; i++)
- {
- arr[i] = i;
- }
- foo(arr);
- return 0;
- }
- ///////////////////////////////////////////////////
- int foo(int *p)
- {
- for(int i = 0; i < 20; i++)
- {
- printf(" %2d\n", p[i]);
- }
- }
- /*
- #include <stdio.h>
- #include <locale.h> // здесь "живёт" setlocale(LC_ALL, "rus");
- int foo();
- ///////////////////////////////////////////////////
- int main() //
- {
- setlocale(LC_ALL, "rus");
- int n = foo();
- printf("Верные символы %d != %d", 77, n);
- return 0;
- }
- ///////////////////////////////////////////////////
- int foo()
- {
- return 99;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement