Official pageFollow
Computer Science-I
CSS Objective Part/MCQs · Computer Science-I · 2025PMS

What is the output of the following code? int main(){ int a = 40; int* ptr = &a; int& ref = *ptr; ref = 60; cout << a; }

  • A.40
  • B.60
  • C.Error
  • D.None of these
ReportSuper Admin

Discussion

Sign in to discuss this MCQ.

    No comments yet.