Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int nArr[10]={0,1,2,3,4,5,6,7,8,9};
- ////////////////////////////////////////////////
- void falr(int *p)
- {
- p=p-7;
- }
- /////////////////////////////////////////////////
- int main()
- {
- falr(&nArr[4]);
- int *p;
- for(int i=0;i<10;i++)
- {
- printf("p = %d\n",p);
- }
- }
- /*
- #include <stdio.h>
- ////////////////////////////////////////////////////
- int main(int n, char **psz) //
- {
- printf("n = %d\n", n);
- printf("psz[0] = %s\n", psz[0]);
- scanf("%d", &n);
- }
- */
- /*
- #include <stdio.h>
- FILE *fp;
- ////////////////////////////////////////////////////
- int main() //
- {
- fp = fopen("SONY.txt", "w");
- if(fp == 0)
- {
- printf("Error open file!\n");
- return 0;
- }
- fprintf(fp, "Privet, Eugeny!");
- fclose(fp);
- }
- */
- /*
- #include <stdio.h>
- int n = 123456789;
- void foo();
- void (*p_f)() = foo;
- ////////////////////////////////////////////////////
- int main() //
- {
- p_f();
- printf("address foo = %d\n", foo);
- }
- /////////////////////////////////////////////////////
- void foo()
- {
- printf("Hello, World !\n");
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement