πŸ“Š C++
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;
}
  • (A) StackHowTo
  • (B) Stack
  • (C) HowTo
  • (D) H
πŸ’¬ Discuss
βœ… Correct Answer: (C) HowTo

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
204
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate