⟩ Tell me what is the block scope variable in C++?
A variable whose scope is applicable only within a block is said so. Also a variable in C++ can be declared anywhere within the block.
A variable whose scope is applicable only within a block is said so. Also a variable in C++ can be declared anywhere within the block.
What is a local reference?
What is reference variable?
What means pass by pointer?
What means pass by reference?
What means pass by value?
Which reference modifier is used to define reference variable? a) & b) $ c) # d) none of the mentioned
What does a reference provide? a) Alternate name for the class b) Alternate name for the variable c) Alternate name for the pointer d) none of the mentioned
Identify the correct sentence regarding inequality between reference and pointer. a) we can not create the array of reference. b) we can create the Array of reference. c) we can use reference to reference. d) none of the mentioned
Which value we cannot assign to reference? a) integer b) floating c) unsigned d) null
What is output of this program? #include <iostream> using namespace std; int main() { int a = 9; int & aref = a; a++; cout << "The value of a is " << aref; return 0; } a) 9 b) 10 c) error d) 11