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 7032

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 10348

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 9263

How do I open binary files?

1 5408

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

2 7193

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 5824

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 6596

what is meaning of isa and hsa

1 7849

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

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

58 75488

What will happen if when say delete this ?

7 16241

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

12 50775

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

Wipro,

3 8461

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

3 7195

Explain the need for "Virtual Destructor"?

Infosys,

2 8285


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is ctime c++?

1127


Can we declare a base-class destructor as virtual?

1012


How can you say that a template is better than a base class?

1073


How do you master coding?

1038


Explain the difference between realloc() and free() in c++?

1019


What do you mean by static variables?

1178


What are containers in c++?

992


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1261


How can we check whether the contents of two structure variables are same or not?

1073


What is microsoft c++ redistributable?

1100


What causes a runtime error c++?

1127


What does new do in c++?

1074


Can you please explain the difference between static and dynamic binding of functions?

1033


Is c++ platform dependent?

1081


Tell me can a pure virtual function have an implementation?

1034