MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
Cpp Programming
→
General in CPP Programming
→
Output of following C++ program?
1.
Output of following C++ program?
A.
x = 20; ref = 30
B.
x = 20; ref = 20
C.
x = 10; ref = 30
D.
x = 30; ref = 30
Answer» B. x = 20; ref = 20
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What happens when delete is used for a NULL pointer?
Which of the following is true about new when compared with malloc:
Output of the program?
Which of the following is true about templates?
In C++, const qualifier can be applied to
Is it fine to call delete twice for a pointer?
Predict the output?
Which of the following is incorrect in C++?
Which of the following is true about pure virtual functions?
Which of the following is true about constructors?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies