Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



C++ Interview Questions
Questions Answers Views Company eMail


Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

IBM,

13 22072

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 8094

Definition of class?

12 15732

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

Infosys, Microsoft, TCS,

24 45870

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 4160

How do you test your code?

Microsoft,

4 18016

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 10992

How many bit combinations are there in a byte?

Intel, Microsoft,

13 48416

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 10121

What compiler was used?

Intel,

6 12159

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

Christ University, Intel,

20 86788

What is the Maximum Size that an Array can hold?

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

55 89364

Assume I have a linked list contains all of the alphabets from "A" to "Z?" I want to find the letter "Q" in the list, how does you perform the search to find the "Q?"

2 6738

Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return }

Sun Microsystems,

1 5389


Un-Answered Questions { C++ }

How does a C++ structure differ from a C++ class?

1120


How does list r; differs from list r();?

1147


What are vtable and vptr?

1140


State two differences between C and C++.

1159


Differentiate between a pointer and a reference with respect to c++.

1240


How static variables and local variablesare similar and dissimilar?

1039


What is the difference between delegation and implemented-in-terms-of?

1002


Define pre-condition and post-condition to a member function in c++?

1147


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1081


What is array in c++ example?

1106


Explain pass by value and pass by reference.

1053


What is #include ctype h in c++?

1165


What are different oops concepts?

1057


How can you tell what shell you are running on unix system?

1111


What are the vectors in c++?

1027