1.

subscript operator is used to access which elements?(a) string(b) char(c) array(d) floatThe question was posed to me during an interview.My question is from Subscripting topic in chapter Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Correct answer is (c) ARRAY

The best explanation: To access any element of an array we use following syntax array[i], where i is CALLED subscript representing the ith element of an array, WHEREAS no such cases in char and STRINGS.



Discussion

No Comment Found

Related InterviewSolutions