Explain linked list using c++ with an example?
No Answer is Posted For this Question
Be the First to Post Answer
Explain unexpected() function?
How do you allocate and deallocate memory in C++?
What is atoi in c++?
Is atoi safe?
Can we delete this pointer in c++?
What is a v-table?
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.
Explain the isa and hasa class relationships. How would you implement each?
Define stacks. Provide an example where they are useful.
Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";
What are mutator methods in c++?
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.