How do you save a c++ program?


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

Post New Answer

More C++ General Interview Questions

What is the difference between stack and heap memory?

1 Answers  


Which one is a preferred language C or C++? Why?

0 Answers  


Difference between a homogeneous and a heterogeneous container

0 Answers  


How do you initialize a class member, class x { const int i; };

8 Answers   emc2,


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,


sizeof - is it a function or operator?

6 Answers   Honeywell,


Why do we use classes in programming?

0 Answers  


How would you find out if a linked-list is a cycle or not?

0 Answers  


What are built-in functions? What is the syntax for the definition?

0 Answers  


How can you differentiate between inheritance and implementation in c++?

0 Answers  


How much do c++ programmers make?

0 Answers  


What is a c++ vector?

0 Answers  


Categories