C++ Interview Questions
Questions Answers Views Company eMail

what are the ways in which a constructors can be called?

TCS,

2 5782

what are the ways in which a constructors can be called?

1583

c++ is a purely oop concept?

Google, TCS,

3 5141

what is the advantage in software? what is the difference between the software developer and Engineer

1 2619

#include using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }

1 3645

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1978

i^=j; j^=i; i^=j; value of i,j

1 2923

A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.

2 27805

i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????

1 6533

program for insertion ,deletion,sorting in double link list

2281

what is a class

6 5756

• What are the desirable attributes for memory managment?

1726

what is object?

7 6205

Can we create object of class with private constructor?

5 6997

IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1581


Un-Answered Questions { C++ }

When should we use multiple inheritance?

617


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6485


What is a rooted hierarchy?

683


What is a unnitialised pointer?

532


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

676






What is the latest version on c++?

687


Does c++ have a hash table?

542


Is c++ slower than c?

571


What is stack unwinding?

606


What is the extension of c++?

514


Implement stack operations with pointers with appropriate exception checks.

567


How many characters are recognized by ANSI C++?

898


what is friend function in C++?

594


If a function doesn’t return a value, how do you declare the function?

616


Is c++ used anymore?

589