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++ General Interview Questions
Questions Answers Views Company eMail

catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;

Quark,

2 7136

int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30

AIG, Quark,

2 10440

what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking

Hughes,

2 6655

In a class only declaration of the function is there but defintion is not there then what is that function?

Hughes,

5 9448

How do I open binary files?

1 5489

How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)

2 7294

what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?

2 5909

Find out the bug in this code,because of that this code will not compile....... #include #include #include using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }

Impetus,

2 6674

what is meaning of isa and hsa

1 7949

What is the output of printf("%d")?

CTS, HCL, Infosys, TCS, Winit, Wipro,

58 76995

What will happen if when say delete this ?

7 16441

What is the Difference between "C structure" and "C++ structure"?

12 51178

What is the Diffrence between a "assignment operator" and a "copy constructor"?

Wipro,

3 8570

What is the difference between "overloading" and "overridding"?

3 7313

Explain the need for "Virtual Destructor"?

Infosys,

2 8370


Post New C++ General Questions

Un-Answered Questions { C++ General }

What are member functions used in c++?

1208


Can I uninstall microsoft c++ redistributable?

1187


What is an iterator class in c++?

1193


Do vectors start at 0?

1044


Write a program to interchange 2 variables without using the third one.

1108


Explain bubble sorting.

1142


Declare a class vehicle and make it an abstract data type.

1023


How to allocate memory dynamically for a reference?

1094


What is == in programming?

1089


Can you Mention some Application of C/C++?

1126


What is a local reference?

1235


What is time h in c++?

1184


Comment on assignment operator in c++.

1169


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1120


What is the difference between a template and a macro?

1116