C++ Interview Questions
Questions Answers Views Company eMail

1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)

Nagarro,

1 6281

how much classes are used in c++

5 5851

what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.

Excel,

2 3817

i want a road rash 3d game code if some one know please help me

1 4685

class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1670

please help to write the code of chess game in c++??????????

NEC,

1 5395

WHAT IS THE DIFFERENCE BETWEEN OBJECT BASED & OBJECT ORIENTD PROGRAMMING LANGUAGE.(GIVE AT LIST 4 PIONT)

TCS,

1 5318

What is the size of pointer ? Also size of pointer in 64 bit pointer

4 6114

Live example for static function?

Infosys,

1 4039

How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3178

given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().

2 4533

Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1585

#define CUBE(x) (x*x*x) main() { int a,b=3; a=cube(b++); printf("%d %d",a,b); } What should be the value of a and b? My calc a=4 but syst a=6 how pls tell me if you know it?

Wipro,

12 36746

why overriding?

3 7013

Write a program in c++ to read two floating point numbers and find their sum and average.

2 8425


Un-Answered Questions { C++ }

How are the features of c++ different from c?

569


What is oops?what is its use in software engineering?

532


What are the benefits of pointers?

567


What is lambda expression c++?

549


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

976






Is it possible to provide default values while overloading a binary operator?

735


What is the v-ptr?

609


Who invented turbo c++?

580


What is type of 'this' pointer?

573


Give an example of run-time polymorphism/virtual functions.

540


How much do c++ programmers make?

539


What is istream c++?

546


What is lazy initialization in c++?

624


What is stack unwinding?

577


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.

6458