Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <conio.h>
- #include <iostream>
- using namespace std;
- char c;
- int garbage_function()
- { char c;
- cout << "press a key";
- cin >> c;
- }
- int main()
- {
- char c;
- char str_a[20];
- char *pointer;
- char *pointer2;
- strcpy(str_a, "Hello World\n");
- pointer = str_a;
- printf(pointer);
- pointer2 = pointer + 2;
- printf(pointer2);
- strcpy(pointer2, "y you guys!\n");
- printf(pointer);
- cout << "press a key to continue";
- cin >> c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement