Explain the different access specifiers for the class member in c++.
No Answer is Posted For this Question
Be the First to Post Answer
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Differentiate between late binding and early binding. What are the advantages of early binding?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is polymorphism in c++? Explain with an example?
How do you compile the source code with your compiler?
which operator is used for performing an exponential operation a) > b) ^ c) none
What is time h in c++?
Write a program to find the Fibonacci series recursively.
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
Please explain the reference variable in c++?