OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » C++ Quiz

When passing parameters by reference, which symbol is used to denote reference in C++? 

Difficulty level
  • # 
  • @ 
  • & 
  • %
In C++, the ampersand (&) is used to denote that a parameter is being passed by reference. This allows the function to directly access and modify the actual argument's memory location.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
C++ Quiz
Quiz
What happens if an exception occurs in a destructor in C++? 
Which data type would be most appropriate for storing a boolean value? 

Related Quiz

  • What is the primary purpose of encapsulation in object-oriented programming in C++? 
  • The use of _______ in nested if-else structures can sometimes enhance readability and maintainability of the code. 
  • You are tasked with implementing a recursive algorithm that, during testing, experiences a stack overflow error. Which approach might be most effective in resolving this issue without significantly altering the algorithm? 
  • Which of the following C++ versions introduced the auto keyword for automatic type deduction? 
  • To read an entire string from a file, instead of a single character, use the _______ function. 

Leave a commentCancel

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

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy