What does getch() do according to the ANSI C++ standard
a) Reads in a character
b) Checks the keyboard buffer
c) Nothing in particular (Its not defined there)
No Answer is Posted For this Question
Be the First to Post Answer
How much is c++ certification?
What are the advantages of inheritance in c++?
Do you know what are static and dynamic type checking?
Is there a sort function in c++?
Is it possible for a member function to delete the pointer, named this?
write a function signature with various number of parameters.
What is runtime polymorphism in c++?
What are the four main data types?
C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() { cout<<cout<<' '; cout<<cin; return 0; } It prints some address in hexadecimal. what is it?
What are pointer-to-members in C++? Give their syntax.
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; }
What is an adaptor class in c++?