MCQOPTIONS
Bookmark
Saved Bookmarks
→
Computer Science Engineering (CSE)
→
Software Design Modeling
→
Output of following program?#include using namespa...
1.
Output of following program?#include using namespace std;int fun(int=0, int = 0);int main(){cout
A.
Compiler Error
B.
5
C.
0
D.
10
Answer» C. 0
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
When an ADT is implemented as a C++ class, which of the following should normally be true?
Which of the followings is/are automatically added to every class, if we do not write our own?
#includeusing namespace std;class Point {public:Point() { cout
Output of following program?#includeusing namespace std;class Point {Point() { cout
Which of the following is true about constructors?1) They cannot be virtual.2) They cannot be private.3) They are automatically called by new operator.
Output of following C++ program?#includeusing namespace std;int main(){int x = 10;int& ref = x;ref = 20;cout
Which of the following is true about templates?1) Template is a feature of C++ that allows us to write one code for different data types.2) We can write one function that can be used for all data types including user defined types. Like sort(), max(), min(), ..etc.3) We can write one class or struct that can be used for all data types including user defined types. Like Linked List, Stack, Queue,..etc.4) Template is an example of compile time polymorphism.
Which of the following is incorrect in C++?(1)When we write overloaded function we must code the function for each usage.(2)When we write function template we code the function only once.(3)It is difficult to debug macros(4)Templates are more efficient than macros
Which of the following are member dereferencing operators in CPP? 1. * 2. :: 3. ->* 4. ::* 5. ->
How to create a dynamic array of pointers (to integers) of size 10 using new in C++? Hint: We can create a non-dynamic array using int *arr[10]
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies