Sie sind auf Seite 1von 2

Home Work1 DOA:22/09/2012 MM:30 DOS:16/10/2012

Part A
Q1. Create a class box with its data members width, height and depth. Initialize the data members using default, parameterized, copy constructor and calculate the volume of box. Q2.Write a program that calculates the multiplication of two matrices using the concept of classes. Q3. What do you mean by Dynamic Constructor?How does it help to improve memory utilization ?

Part B
Q4. Write a program to display all palindrome among variable no of inputted string ( for which memory is allocated dynamically ) through keyboard and do it without using any library function directly . Q5.Write a program to find out the largest number from an array of n elements using dynamic memory allocation. Q6. How can you take input of name of several students where no of students is asked at run time ? write a code.
Designed By: Makul Mahajan

Das könnte Ihnen auch gefallen