C++ Interview Questions
Questions Answers Views Company eMail

Please explain class & object in c++?

576

What are member functions used in c++?

528

What is copy constructor? Can we make copy constructor private in c++?

569

What is a storage class used in c++?

582

Explain the difference between class and struct in c++?

569

Define friend function.

544

What are the c++ access specifiers?

1 739

How delete [] is different from delete?

570

What are the methods of exporting a function from a dll?

625

What is the purpose of the "delete" operator?

602

What does scope resolution operator do?

573

What is the full form of stl in c++?

642

Who was the creator of c++?

538

What are the various oops concepts in c++?

570

What is the difference between function overloading and operator overloading?

552


Un-Answered Questions { C++ }

Explain the different access specifiers for the class member in c++.

518


What is the use of setfill in c++?

559


What is an accessor in c++?

598


What are the four partitions in which c++ compiler divides the ram?

675


how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

1791






What does and I oop mean in text?

595


Difference between overloading vs. Overriding

561


Can we change the basic meaning of an operator in c++?

627


How to convert integer to string in C++

353


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1359


Is c++ the hardest programming language?

607


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

1618


How can I improve my c++ skills?

531


what is C++ objects?

647


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

567