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 7029

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 10346

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 6525

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

Hughes,

5 9258

How do I open binary files?

1 5408

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

2 7192

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 5822

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 6595

what is meaning of isa and hsa

1 7846

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

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

58 75444

What will happen if when say delete this ?

7 16237

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

12 50772

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

Wipro,

3 8461

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

3 7194

Explain the need for "Virtual Destructor"?

Infosys,

2 8284


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is using namespace std in c++?

1162


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1186


Can we declare a base-class destructor as virtual?

1010


daily Routine of father

1412


What is the use of bit fields in structure declaration?

987


How much maximum can you allocate in a single call to malloc()?

1107


What is a float in c++?

985


What is the difference between #define debug 0 and #undef debug?

1190


What programming language should I learn first?

1101


What is array give example?

1051


What is the extraction operator and what does it do?

1085


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1116


Tell me can a pure virtual function have an implementation?

1033


Is c++ a dying language?

1154


Explain the pure virtual functions?

1125