What are the data types in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> 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; }

2 Answers   Impetus,


What are the extraction and insertion operators in c++?

0 Answers  


what is object?

7 Answers  


Why is main an int?

0 Answers  


Is main a class in c++?

0 Answers  






Where are setjmp and longjmp used in c++?

0 Answers  


What do you mean by “this” pointer?

0 Answers  


Define the process of handling in case of destructor failure?

0 Answers  


What are the difference between reference variables and pointers in C++?

1 Answers  


What happens if a pointer is deleted twice?

0 Answers   Flextronics,


Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.

0 Answers   Maxobiz,


What is setbase c++?

0 Answers  


Categories