2 C With Data Structure
2 C With Data Structure
};
void Show(); BY:SANTOSH VERMA SIR
class SHOP : private CUSTOMER , public Mob.: 9430706774, 8757777836
SALESMAN
{ Units :(i)Programming in C++ (ii)Data Structure.
char Voucher_No[10];
char Sales_Date[8]; Students Name.. Full Marks : 66
public:
SHOP(); College................................... Pass Marks : 22
void Sales_Entry();
void Sales_Detail(); Roll no. Batch Time. Time : 120 min.
}; Date
(i) Write the names of data members which are
accessible from objects belonging to
class CUSTOMER.
(ii) Write the names of all the member
functions which are accessible from GENERAL INSTRUCTIONS :
objects belonging to class SALESMAN.
(iii)Write the names of all the members which (i) All the questions are compulsory.
are accessible from member functions (ii) Programming Language: C++
of class SHOP.
(iv) How many bytes will be required by an
(iii) Marks for each question are indicated against it
object belonging to class SHOP?
3.)a) Write a program for decalring and calling of function
inside main and defining outside the main (). 4(1+1+1+1)
b) WAP in c++ which accepts the two matrix of the sum and display the sum
of particular matrics. 4(1+1+1+1)
c) Write an Algorithm to insert an ITEM in a QUEUE implemented as an
array. 4 (1+1+1+1)
d) Evaluate the following postfix notation of expression: 2
20,30,+,50,40,-,*
e) WAP in c++ to show Input and Display the matrix using an Array. 2
4.) a) Give syntax to define a structure. 1
b) Swapping of two numbers using function call by value. 2
c) What is difference b/w Stack and Queue? 3( + )