Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <stdio.h>
- char sz[33] = "SONY";
- /////////////////////////////////////////
- int main() //
- {
- printf("sz[0] = %d = %c\n", sz[0], sz[0]);
- printf("sz[1] = %d = %c\n", sz[1], sz[1]);
- printf("sz[2] = %d = %c\n", sz[2], sz[2]);
- printf("sz[3] = %d = %c\n", sz[3], sz[3]);
- printf("sz[4] = %d = %c\n", sz[4], sz[4]);
- }
- /*
- #include <iostream>
- using namespace std;
- #include <stdio.h>
- char sz[33] = "SONY";
- /////////////////////////////////////////
- int main() //
- {
- printf("sz[0] = %d\n", sz[0]);
- printf("sz[1] = %d\n", sz[1]);
- printf("sz[2] = %d\n", sz[2]);
- printf("sz[3] = %d\n", sz[3]);
- printf("sz[4] = %2d\n",sz[4]);
- }
- */
- /*
- #include <iostream>
- using namespace std;
- #include <stdio.h>
- char sz[33] = "SONY";
- /////////////////////////////////////////
- int main() //
- {
- 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]);
- }
- */
- /*
- #include <iostream>
- using namespace std;
- int foo();
- char sz[33];
- int n = 92;
- /////////////////////////////////////////
- int main()
- {
- cin >> sz;
- cout << sz << endl;
- cout << foo() << endl;
- return 0;
- }
- ///////////////////////////////////////////
- int foo() //
- {
- n = n + 2;
- return n;
- }
- */
- /*
- #include <iostream>
- using namespace std;
- /////////////////////////////////////////
- int main()
- {
- char sz[33];
- cin >> sz;
- cout << sz << endl;
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement