Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char sz[99];
- ////////////////////////////////////////////////////////
- int main()
- {
- for(int i = 0; i < 5; i++)
- {
- sz[i] = 104 + i;
- }
- printf(sz);
- return 0;
- }
- /*
- #include <stdio.h>
- char sz[99] = "SONY";
- ////////////////////////////////////////////////////////
- int main()
- {
- sz[2] = 'Z';
- printf("sz[0] = %c \n", sz[0]);
- printf("sz[1] = %c \n", sz[1]);
- printf("sz[2] = %c \n", sz[2]);
- printf("sz[3] = %c \n", sz[3]);
- sz[1] = 'b';
- printf(sz);
- return 0;
- }
- */
- /*
- #include <stdio.h>
- int n1 = 43, // l;k dgkl; ;kfdlk dgfl;k
- n2 = 44; // lkjkljsdlk klsj fkl jaskldf
- char c = '$';
- char sz[99] = "SONY";
- ////////////////////////////////////////////////////////
- int main()
- {
- printf("size of c = %d\n", sizeof(c));
- printf(" c = %c\n", c );
- printf(" sz = %s\n", sz);
- return 0;
- }
- */
- /*
- #include <stdio.h>
- #include <locale.h> // здесь "живёт" setlocale(LC_ALL, "rus");
- int n1 = 43,
- n2 = 44;
- ////////////////////////////////////////////////////////
- int main()
- {
- printf("n = %d\n", n1 - n2);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement