WHO DEVELOPED C++?
Answers were Sorted based on User's Feedback
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)
How much maximum can you allocate in a single call to malloc()?
What are keywords in c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is the syntax for a for loop?
why v use c++ even we have microprocessor
What are c++ data types?
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 data encapsulation in C++?
Explain the term memory alignment?
What is searching? Explain linear and binary search.