🎴 Flashcard Mode

Programming Languages: Java, C#, C, and C++ Concepts

Card1 / 20
Mastered0
Review0
QuestionClick to flip

A function call is always an rvalue. True or false?

AnswerClick to flip back
A
False
💡 Explanation:

A function call is not always an rvalue in C/C++. Whether it's an rvalue depends on the return type - if a function returns by value, the call is an rvalue, but if it returns a reference, it can be an lvalue. For example, a function returning int& can be used as an lvalue.

Change Mode