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 22570

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 8270

Definition of class?

12 16199

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

Infosys, Microsoft, TCS,

24 46746

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 4224

How do you test your code?

Microsoft,

4 18189

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 11162

How many bit combinations are there in a byte?

Intel, Microsoft,

13 48897

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 10289

What compiler was used?

Intel,

6 12422

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

Christ University, Intel,

20 87491

What is the Maximum Size that an Array can hold?

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

55 91279

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 6875

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 5491


Un-Answered Questions { C++ }

What is the benefit of oop?

1109


Explain what data encapsulation is in c++?

1162


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2596


What does oop mean in snapchat?

1303


What is meant by entry controlled loop? What all C++ loops are exit controlled?

1150


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

1432


How come you find out if a linked-list is a cycle or not?

1088


What will the line of code below print out and why?

797


Explain the concept of memory leak?

1159


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

1027


What is constructor c++?

1158


What is c++ namespace?

1262


What is the difference between passing by reference and passing a reference?

1141


Difference between strdup and strcpy?

1255


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1170