C++ Interview Questions
Questions Answers Views Company eMail

What is the use of register keyword with the variables?

546

Out of fgets() and gets() which function is safe to use?

641

What is the size of integer variable?

590

What do you mean by const correctness?

626

We use library functions in the program, in what form they are provided to the program?

595

Which format specifier is used for printing a pointer value?

573

What do you mean by funtion prototype?

579

What are the uses of pointers?

577

What do you mean by function pointer?

593

Describe linkages and types of linkages?

561

Is arr and &arr are same expression for an array?

580

What is the use of bit fields in structure declaration?

537

What is the prototype of printf function?

645

Eplain extern keyword?

559

What is the difference between structures and unions?

580


Un-Answered Questions { C++ }

Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

1735


What are the two main components of c++?

588


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

698


What is encapsulation with real life example?

567


Why main function is special in c++?

665






What is an inclusion guard?

615


What is the use of endl in c++ give an example?

610


How do you invoke a base member function from a derived class in which you’ve overridden that function?

580


What will the line of code below print out and why?

322


How to generate random numbers in C++ with a range?

403


Tell me about virtual function

541


What is fixed in c++?

582


What is an algorithm (in terms of the STL/C++ standard library)?

606


Difference between delete and free.

611


Is empty stack c++?

519