Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
References
Which of the following statement is correct?
A reference is stored on heap.
A reference is stored on stack.
A reference is stored in a queue.
A reference is stored in a binary tree.
Correct Answer:
A reference is stored on stack.
← Previous Question
Next Question→
More Questions from
References
Which of the following statement is correct?
A reference is declared using the _____ symbol.
Which of the following statements is correct? Once a reference variable has been defined to refer to a particular variable it can refer to any other variable. A reference is not a constant pointer.
Which of the following statements is correct? A reference is not a constant pointer. A referenced is automatically de-referenced.
Which of the following statement is correct?
Which of the following statements is correct? Pointer to a reference and reference to a pointer both are valid. When we use reference, we are actually referring to a referent.
Which of the following statements is correct? Change a reference changes the referent. We can create an array of references.
Which of the following statement is correct about the program given below? #include
int CuriousTabFunction(int m) { m *= m; return((10)*(m /= m)); } int main() { int c = 9, *d = &c, e; int &z = e; e = CuriousTabFunction(c-- % 3? ++*d :(*d *= *d)); z = z + e / 10; cout<< c << " " << e; return 0; }
What will be the output of the following program? #include
enum xyz { a, b, c }; int main() { int x = a, y = b, z = c; int &p = x, &q = y, &r = z; p = z; p = ++q; q = ++p; z = ++q + p++; cout<< p << " " << q << " " << z; return 0; }
Which of the following statement is correct about the program given below? #include
int main() { int x = 10; int &y = x; x++; cout<< x << " " << y++; return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments