Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int nArr[12];
- ////////////////////////////////////////////////////
- int main() //
- {
- int *p = nArr;
- printf("%d\n", nArr);
- printf("%d\n", p );
- nArr[7] = 17;
- for(int i = 0; i < 12; i++) printf("%2d\n", p[i] );
- }
- /*
- #include <stdio.h>
- int foo();
- int (*f)() = foo;
- ////////////////////////////////////////////////////
- int main() //
- {
- printf("%d\n", f() );
- printf("%d\n", foo );
- }
- /////////////////////////////////////////////////////////////
- int foo()
- {
- return 7 + 3;
- }
- */
- /*
- #include <stdio.h>
- ////////////////////////////////////////////////////
- int main() //
- {
- int n = 77,
- *p = &n;
- int &a = n;
- printf("%d\n", n );
- printf(" p = %d\n", p );
- printf("*p = %d\n", *p );
- printf("&a = %d\n", &a );
- }
- */
- /*
- #include <stdio.h>
- __int16 n;
- float f;
- ////////////////////////////////////////////////////
- int main() //
- {
- n = 32760;
- printf("%d\n", sizeof(n) );
- for(int i = 32760; i < 32790; i++ )
- {
- printf("%d\n", n++);
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement