Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int nNumb[4] = {100, 2, 3, 4};
- void foo(int *); // åñëè óáåðó nNumb,
- ////////////////////////////////////////////////////
- int main() //
- {
- foo(nNumb);
- //printf("%d\n", n);
- }
- ////////////////////////////////////////////////////
- void foo(int *p) //
- {
- for (int i = 0; i < 4; i++)
- {
- printf("%3d\n", p[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement