Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Проинициализировать двумерные массивы и распечтать их содержимое.
- #include <stdio.h>
- int nArr[3][4];
- int *pArr[3];
- int arr1[4],
- arr2[4],
- arr3[4];
- /////////////////////////////////////////////////////
- int main()
- {
- pArr[0] = arr1;
- pArr[1] = arr2;
- pArr[2] = arr3;
- }
- /*
- #include <stdio.h>
- char sz[14][17] = {"", "January" ,
- "February",
- "Mart"};
- const char *psz[14] = {"", "January" ,
- "February",
- "Mart"};
- /////////////////////////////////////////////////////
- int main()
- {
- for(int i = 1; i <= 3; i ++)
- {
- printf("%s\n", psz[i]);
- }
- return 0;
- }
- */
- #include <stdio.h>
- FILE *fp;
- char sz[123];
- ////////////////////////////////////////////////////////////
- int main() //
- {
- fp = fopen("Dima", "r");
- fscanf(fp, "%s", sz);
- printf("%s, fp = %d\n", sz, fp);
- printf("%s \n", sz);
- printf(" fp = %d\n", fp);
- fclose(fp);
- return 0;
- }
- /*
- #include <stdio.h>
- FILE *fp;
- ////////////////////////////////////////////////////////////
- int main() //
- {
- fp = fopen("Dima", "w");
- fprintf(fp, "SONY 1234 \" %d", fp);
- printf("fp = %d\n", fp);
- fclose(fp);
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement