Home / Programming Questions / C++ MCQs / Page 144

C++ MCQs with answers Page - 144

Dear candidates you will find MCQ questions of C++ here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

T

Tina Singh • 10.78K Points
Tutor II

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

D

Deepak Sahoo • 10.78K Points
Tutor II

Q. we can manipulate data stored in other variables ________ with pointer variables.

(A) never
(B) seldom
(C) indirectly
(D) both a and b

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.