Oop Set C
Oop Set C
int * ptr, a = 5;
ptr = &a ;
cout<< * ptr ;
cout<<( *ptr) + 1;
d) Develop a c++ program to create structure student with data member Name, Roll No., percentage accept and display data
for 5 student using structure.
e) Write a program to display string in reverse order by using pointer. .
b) Write a program to implement the following hierarchy using suitable member functions. Refer Figure No. 2.
c) Write a program to implement inheritance as shown in figure No. 2. Assume suitable member function
d) Differentiate between constructor and destructor in C++. (Any four points)