C++ Interview Questions
Questions Answers Views Company eMail

How would you use the functions memcpy(), memset(), memmove()?

617

How would you obtain segment and offset addresses from a far address of a memory location?

610

What is near, far and huge pointers? How many bytes are occupied by them?

646

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

690

which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

707

Can you write a function similar to printf()?

659

Write a program which uses functions like strcmp(), strcpy()? etc

607

What is a far pointer? where we use it?

606

If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

992

What is the difference between the functions memmove() and memcpy()?

619

Write a program which employs Recursion

720

How can we check whether the contents of two structure variables are same or not?

577

What are enumerations?

647

Can we specify variable field width in a scanf() format string? If possible how?

650

Does there exist any other function which can be used to convert an integer or a float to a string?

642


Un-Answered Questions { C++ }

What is data abstraction? How is it different from data encapsulation?

524


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

552


Difference between overloading vs. Overriding

583


Explain terminate() function?

587


Is there any function that can skip certain number of characters present in the input stream?

575






What does it mean to take the address of a reference?

509


What does <> mean pseudocode?

610


Which bit wise operator is suitable for turning off a particular bit in a number?

636


What do you mean by inheritance in c++?

592


Can we provide one default constructor for our class?

272


What are references in c++? What is a local reference?

567


Describe Trees using C++ with an example.

598


Write a program to concatenate two strings.

577


Describe exception handling concept with an example?

549


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

603