0
why isn't this code working
#include <iostream> #include<string> using namespace std; int main() { char *p='this'; cout << *p; cout << p; return 0; }
3 Answers
0
Please describe what happens when you run this program, and what do you expect instead.
0
You also need the String class not the char class.
- 1
You just have to change the simple quotes by double quotes because it is a string.