I have some code:
#include <iostream>
#include <string>
using namespace std;
int main(){
char abc [20] = "Hello Hello Hi";
char* ptr = abc;
cout << (abc+3);
return 0;
}
Why does it print out from the third character up and not simply the third character?
-edit- to whoever flagged it down. it's not the same as prinf(), but same type of concept. i just didnt know the nuances