A

Admin • 833K Points
Coach

Q. Output of this program will be

Code:
#include
using namespace std;
int main()
{
char str[5] = “ABC”;
cout << str[3];
cout << str;
return 0;
}
  • (A) ABCD
  • (B) AB
  • (C) ABC
  • (D) None
  • Correct Answer - Option(C)
  • Views: 19
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.