Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <iostream>
- using namespace std;
- int n = 52; // 4 Байта (32 бита)
- char c = 'Y'; // 1 Байт (8 бит)
- char sz [43] = "SONY";
- char sz1[43] = {'A', 83, 'S', 'A' };
- //////////////////////////////////////////////////////
- int main() //
- {
- cout << c ;
- printf(" = %d \n", c);
- printf( "%s \n", sz);
- sz[0] = 80;
- printf( "%s \n", sz1);
- }
- /*
- #include <stdio.h>
- #include <iostream>
- using namespace std;
- int n = 52;
- //////////////////////////////////////////////////////
- int main() //
- {
- switch(n)
- {
- case 2: cout << 3 + 2 << endl;
- break;
- case 5: printf("%d", 5 - 2);
- break;
- case 8: cout << "Hello, Vlad!";
- break;
- case 9: cout << "Hello, Dima!";
- break;
- default: cout << "default";
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement