Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int i = 0;
- void Dima(int *);
- //////////////////////////////////////////////
- int main() //
- {
- int nArr[222];
- while(i < 100)
- {
- nArr[i] = i+1000;
- i ++ ;
- }
- Dima(&nArr[-1000]);
- }
- ///////////////////////////////////////////////
- void Dima(int *nArr) //
- {
- for(i = 20; i < 40; i++)
- {
- printf("nArr[%2d] = %4d \n", i, nArr[i]);
- }
- }
- /*
- #include <stdio.h>
- int i = 0;
- void Dima(int *);
- //////////////////////////////////////////////
- int main() //
- {
- int nArr[222];
- while(i < 100)
- {
- nArr[i] = i+1000;
- i ++ ;
- }
- Dima(nArr);
- }
- ///////////////////////////////////////////////
- void Dima(int *a) //
- {
- for(i = 20; i < 40; i++)
- {
- printf("nArr[%2d] = %4d \n", i, a[i]);
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement