Discussion Forum : Arrays
Question -

What is the output of this program?

#include < stdio.h >

using namespace std;

int main()

{

char str[5] = "ABC";

cout

Options:
A .  ABC
B .  ABCD
C .  AB
D .  None of the mentioned
Answer: Option A


We are just printing the values of first 3 values.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *