A
Q. What is the output of the following code?
Code:
#include <iostream>
using namespace std;
int main()
{
char *p;
char str[] = "StackHowTo";
p = str;
p += 5;
cout << p;
return 0;
}
using namespace std;
int main()
{
char *p;
char str[] = "StackHowTo";
p = str;
p += 5;
cout << p;
return 0;
}
- Correct Answer - Option(C)
- Views: 13
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.