Explain the difference between class and struct in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is the copy-and-swap idiom?
When do we use copy constructors?
Differentiate between declaration and definition in C++?
What is the use of vtable?
What is the difference between the indirection operator and the address of oper-ator?
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
What jobs can you get with a c++ certification?
class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list
What are the different types of comments allowed in c++?
Explain the difference between struct and class in terms of access modifier.
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?