Recent questions tagged cpp

407
views
0 answers
1 votes
On overloading pre increment and post increment why compiler taking dummy value only for post increment and not in pre increment
389
views
0 answers
0 votes
why did constructor's name is same as class name and it has no return type
324
views
1 answers
1 votes
Output is? With explanation
333
views
1 answers
2 votes
Explain the answer.
374
views
0 answers
1 votes
What is the correct Answer ?My answer is 90 and given answer is no output how?
258
views
1 answers
1 votes
How to predict it
395
views
1 answers
1 votes
step by step compile it and provide output
206
views
0 answers
2 votes
381
views
0 answers
1 votes
My answer is :: 1222Given answer is :: 1232 How? Please explain.
397
views
1 answers
0 votes
Spot the features that are present in C++ not in Java:I. New operator II. Delete opeartor III. Objects stored in stack memory. IV . Objects stored in ... onlyb. II and III onlyc. III onlyd. All features are present in C++ and Java
535
views
0 answers
1 votes
Pick the wrong statement about static member cariable in a class written in C++:Only one copy of static data members is created and all objects of ... class is created .All static variables are initialized to zero.All statements are correct
2.9k
views
1 answers
1 votes
Which of the following statement (s) regarding operator overloading is false?a. Overloaded operator should have same precedence as in actual operator.b. Overloaded operator ... and d onlyII. b and cIII. c onlyIV. all statements are correct
351
views
1 answers
2 votes
What fearure(s) can differ between two overloaded functions?a. Number of parametrsb. type of parametersc. Return type.I. a , b, or cII.( a and b) or cIII. a and b onlyIV.( a and c) or( b and c)
15.5k
views
1 answers
2 votes
If class A is friend of class B and if class B is friend of class C, which of the following is true?a. Class C is friend of class Ab. Class A is friend of class Cc. Class B cannot be a friend of any other class d. None of the above
5.7k
views
1 answers
4 votes
What is the difference between overloaded functions and overridden functions?a. Overloading is a dynamic or run-time binding and Overriding is static or compile ... Redefining a function in a derived class is called as overridden function.
1.1k
views
0 answers
2 votes
Which of the following is (are) not recommended in a header file?a. Type definitions (typedefs)b. Class definitionsc. Function definitionsd. Template definitionsI. d onlyII. c onlyIII. b & cIV. a & d
To see more, click for the full list of questions or popular tags.