Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char sz[99] = "SONY Pictures";
- ///////////////////////////////////////////////////////
- int main() //
- {
- printf("address sz = %d\n", sz );
- printf("adr &sz[1] = %d\n", &sz[1]);
- }
- // Добавил Выше пример
- #include <stdio.h>
- ///////////////////////////////////////////////////////
- int main() //
- {
- char sz[99] = "SONY Pictures";
- sz[4] = 0;
- printf("sz = %s\n", sz);
- for(int i = 0; i < 13; i++)
- {
- printf("sz[%2d] = %c\n", i, sz[i]);
- }
- }
- /*
- #include <stdio.h>
- ///////////////////////////////////////////////////////
- int main() //
- {
- char sz[99] = "SONY";
- for(int i = 0; i < 5; i++)
- {
- printf("sz[0] = %d\n", sz[i]);
- }
- }
- */
- /*
- #include <stdio.h>
- ///////////////////////////////////////////////////////
- int main() //
- {
- char sz[99] = "SONY";
- printf("sz = %s\n", sz );
- printf("sz[0] = %c\n", sz[0]);
- }
- */
- /*
- #include <stdio.h>
- char c = 65; //'A';
- __int8 n1 = 66;
- ///////////////////////////////////////////////////////
- int main() //
- {
- printf("n1 = %c", n1);
- }
- */
- /*
- #include <stdio.h>
- ///////////////////////////////////////////////////////
- int main() //
- {
- int n1 = 42, // jhkjhjkh
- n2 = 112; // jhjkhkjh iuhuih
- printf("sizeof = %d", sizeof(char));
- }
- */
- /*
- #include <stdio.h>
- ///////////////////////////////////////////////////////
- int main() //
- {
- int n1 = 42;
- float f2 = 88.44;
- n1 = n1 + f2;
- printf("%d, %d", n1, 22);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement