Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int _strlen(const char *hgjhghgj);
- char sz[99] = "SONY Pictures";
- //////////////////////////////////////////////////
- int main()
- {
- for(int i = 0; i <= 4; i++)
- {
- cout << (int)sz[i] << " = " << sz[i] << endl;
- }
- }
- //////////////////////////////////////////////////
- int _strlen(const char *psz)
- {
- int n = 0;
- return n;
- }
- /*
- #include <iostream>
- using namespace std;
- #include <stdlib.h>
- int n = 111;
- //////////////////////////////////////////////////
- int main()
- {
- int *p = (int*)malloc(4);
- *p = 555;
- cout << "*p = "<< *p << endl;
- int &r = *p;
- cout << " r = "<< r << endl;
- cout << " p = "<< p << endl;
- cout << "address of r = "<< &r << endl;
- }
- */
- /*
- #include <iostream>
- using namespace std;
- int n = 111;
- int *p = &n;
- int &r = n;
- //////////////////////////////////////////////////
- int main()
- {
- cout << "n = "<< *p << endl;
- cout << "address of n = "<< &n << endl;
- cout << "address of n = "<< p << endl;
- cout << "address of p = "<< &p << endl;
- cout << "address of r = "<< &r << endl;
- return 0;
- }
- */
- /*
- #include <iostream>
- using namespace std;
- int n = 111;
- int *p = &n;
- //////////////////////////////////////////////////
- int main()
- {
- cout << "n = "<< *p << endl;
- cout << "address of n = "<< &n << endl;
- cout << "address of n = "<< p << endl;
- cout << "address of p = "<< &p << endl;
- return 0;
- }
- */
- /*
- #include <iostream>
- using namespace std;
- namespace Sobolev
- {
- int n = 111;
- }
- using namespace Sobolev;
- //////////////////////////////////////////////////
- int main()
- {
- int n = 71;
- cout << "n = "<< n << endl;
- return 0;
- }
- */
- /*
- #include <iostream>
- using namespace std;
- char sz[99] = "SONY";
- //////////////////////////////////////////////////
- int main()
- {
- int n = 71;
- cout << " Hello ! " << sz << " size of int = " << sizeof(int) << endl;
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement