C++ Interview Questions
Questions Answers Views Company eMail

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

731

What is the difference between the functions rand(), random(), srand() and randomize()?

715

How can a called function determine the number of arguments that have been passed to it?

648

Write a program to interchange 2 variables without using the third one.

572

What are the differences between malloc() and calloc()?

603

To which numbering system can the binary number 1101100100111100 be easily converted to?

592

What is recursion?

642

What is object file? How can you access object file?

589

How would you use the functions randomize() and random()?

617

What is the maximum combined length of command line arguments including the space between adjacent arguments?

586

How would you use the functions sin(), pow(), sqrt()?

730

What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

605

What is the use of typedef?

623

Which bit wise operator is suitable for putting on a particular bit in a number?

706

What are the advantage of using register variables?

626


Un-Answered Questions { C++ }

What is inheritance in oop?

589


What do you mean by storage classes?

776


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3226


What is overriding in oop?

534


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

711






What is == in programming?

605


What does ios :: app do in c++?

546


What are inline functions? What is the syntax for defining an inline function?

565


Do you need a main function in c++?

543


How much maximum can you allocate in a single call to malloc()?

623


What is a stack c++?

559


Which coding certification is best?

558


What is the real purpose of class – to export data?

602


c++ program to swap the objects of two different classes

1749


What is the best it certification?

572