C++ General Interview Questions
Questions Answers Views Company eMail

tell me about yourself ?i want answer for frehers with various exasmples?

HCL,

2 6182

what is pulse code modulation?

Wipro,

2 9481

wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster

11 20457

const char * char * const What is the differnce between the above two?

TCS,

11 17617

1)#include int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 6463

Definition of class?

12 12391

What is your strongest programming language (Java, ASP, C, C++, VB, HTML,C#, etc.)?

Infosys, Microsoft, TCS,

24 39046

When is the last time you coded in C/C++? What is the most lines of original C/C++ code you have personally written in one project? How confident are you in your ability to write C or C++ without a reference?

Microsoft,

1 3353

How do you test your code?

Microsoft,

4 16250

Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.

Microsoft,

4 9532

How many bit combinations are there in a byte?

Intel, Microsoft,

13 44186

What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++?

Intel,

2 8918

What compiler was used?

Intel,

6 10027

What is the difference between = and == in C?

Christ University, Intel,

16 81860

What is the Maximum Size that an Array can hold?

Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,

55 75857


Post New C++ General Questions

Un-Answered Questions { C++ General }

What does iomanip mean in c++?

594


Explain the term memory alignment?

668


What is else if syntax?

662


Is swift better than c++?

530


How is c++ different from java?

555






What is iterator c++?

536


What is a volatile variable in c++?

548


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

667


What is lazy initialization in c++?

643


What is the difference between the indirection operator and the address of oper-ator?

596


What is singleton class in c++?

584


What is void pointer in c++ with example?

588


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

592


What is the role of copy constructor in copying of thrown objects?

585


What data encapsulation is in c++?

585