Find Output Q.9

0. Consider the following program segment.
static char X [3] = "1234" ;
cout <<  X ;

A complete c++ program with these two statements 

  • Option : D
  • Explanation : c++ forbids initialization with strings, whose length is more than the size of the array. C compiler permits.
Cancel reply

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


Cancel reply

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