πŸ“Š C++
Q. What is the output of the following C++ code?
Code:
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
  char str[7] = "ABC";
  cout << str[3];
  cout << str;
  return 0;
}
  • (A) C
  • (B) ABCD
  • (C) ABC
  • (D) CAB
πŸ’¬ Discuss
βœ… Correct Answer: (C) ABC

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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