What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
char *ptr;
char Str[] = "abcdefg";
ptr = Str;
ptr += 5;
cout
Pointer ptr points to string 'fg'. So it prints fg.
Your email address will not be published. Required fields are marked *
Submit Your Solution hear: