Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- ////////////////////////////////////////////////////
- int main()
- {
- int n1 = 11;
- int n2 = 12,
- n3 = 13,
- n4 = 14,
- nDima = 15,
- nOleg = 16;
- int *pArr[10] = {&n1, &n2 };
- for(int i = 0; i < 6; i++)
- {
- printf("%d\n", i);
- }
- }
- /*
- #include <stdio.h>
- //////////////////////////////////////////////////
- int main()
- {
- int n = 333;
- int *p1 = &n;
- int nArr[99];
- nArr[7] = *p1;
- }
- */
- /*
- void foo();
- ////////////////////////////////////////////////// foo();
- void foo()
- {
- static int nArr[10] = { 10,11,12,13,14,15,16,17,18,19 };
- int* p1 = &nArr[7];
- printf("%d\n", *p1);
- }
- // *p1 = nArr[i];
- */
- /*
- #include<stdio.h>
- ////////////////////////////////////////////////////
- int main()
- {
- int nArr[10] = { 10,11,12,13,14,15,16,17,18,19 };
- for (int i = 0; i < 10; i++)
- {
- if(nArr[i] == 17)
- {
- printf("Index = %d\n", i );
- printf("adress = %d\n", &nArr[i]);
- printf("Content = %d\n", nArr[i]);
- }
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement