What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)?
a) 6
b) 38
c) An unlimited number
No Answer is Posted For this Question
Be the First to Post Answer
Why namespace is used in c++?
What is class in c++ with example?
Can you pass an array to a function in c++?
Can we define function inside main in c++?
What are the advantages of using friend classes?
What does #define mean in c++?
i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem
Can we use this pointer in a class specific, operator-overloading function for new operator?
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; }
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Is c++ still in demand?
structure that describe a hotel with name, address,rooms and number of rooms