write a c++ program to create class student having
datamember name,Roll_no,age,and branch intilcization all the
member using constructor print the all the details on the
screen.
No Answer is Posted For this Question
Be the First to Post Answer
What will i and j equal after the code below is executed? Explain your answer.
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What is a manipulative person?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
What is polymorphism and its type in c++?
List the merits and demerits of declaring a nested class in C++?
Does c++ have string data type?
Explain what is polymorphism in c++?
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;
Differentiate between a copy constructor and an overloaded assignment operator.
What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?
Is main a class in c++?