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

What is the use of volatile variable?

1168

If a header file is included twice by mistake in the program, will it give any error?

1120

What do you mean by translation unit?

1140

If you want to share several functions or variables in several files maitaining the consistency how would you share it?

1057

What are the two shift operators and what are their functions?

1149

What do the header files usually contains?

1126

How to declare a pointer to an array of integers?

1193

What is the difference between global variables and local variable

1125

Keyword mean in declaration?

1123

What size is allocated to the union variable?

1133

How to declare a function pointer?

1047

What are structures and unions?

1070

What do you mean by enumerated data type?

1106

Why isn't sizeof for a struct equal to the sum of sizeof of each member?

1063

why is iostream::eof inside a loop condition considered wrong?

1114


Un-Answered Questions { C++ }

Comment on c++ standard exceptions?

1136


What is difference between array and vector in c++?

1080


What is the error in the code below and how should it be corrected?

826


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

3830


Which sort does c++ use?

1086


Differentiate between a copy constructor and an overloaded assignment operator.

1143


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2210


What are the different scope C++ provide ?

1047


Explain linked list using c++ with an example?

1140


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4182


How can we read/write Structures from/to data files?

1191


What is the use of dot in c++?

1134


Write a C++ program to print strings in reverse order.

997


What is the benefit of oop?

1109


Can I create my own functions in c++?

1146