illustration:void pattern (int a);
void pattern (float b)
void sample (char c);
void sample(int a)
cout< Entered integer is :< a;
void pattern (flow b)
cout< Entered drift number is :<b;
void sample (char c)
cout< Entered persona is :<c;
classification Z: public X, public Y
void display(void );
void X : getdata(int m)
void Y: getdata1(int n)
void most important()
octet it may be determined that only one variable will get transformed that can be
within the expression.
Q1. Cut back the following Boolean Expression using ok-Map:
F( A, B, C, D ) = S ( zero, 2, 3, four, 6, 7, eight,
it may be declared either within the general public or the individual part of a class
its this means that.
Uaually ,it has the objects as arguments.
more than one Inheritance: a category can be derived from a couple of base
classification i.E a class
can inherit the
There are 2 quads and 2 pairs after disposing of the redundant companies.
Quad 1 (m2, m3, m10, m11) reduces to B'C
Quad 2 ( m10, m11, m14, m15) reduces to AC
Pair 1 (m4, m5) reduces to A' BC '
Pair 1 (m13, m15) reduces to ABD
Object as function Arguments:-An object can be surpassed as an argument to
in two approaches.
1. Cross through worth
2. Go by means of reference.
/ illustration of call with the
cout< Date is=<d1.Day</ <d1.Months</ <d1.Three hundred and sixty
example 2:-Write a software to make use of straightforward arithmetic operations
cout< values after alternate<n;
Object as participate in Arguments:-An object can be passed as an argument to
capabilities in two
1. Go by way of price
2. Pass by way of reference.
sample P(forty five);
cout< n worth of p:;
cout<n price of Q:;
cout< n rate of R;
cout<nValue of T:;
Constructor with default
f.Open (MEMO.TXT, ios : in);
char are ;
int i = zero, sum = zero,n = zero ;
at the same time (f)
f. Get (ch);
are [i] = ch;
if (strcpy (ch, do)
sum = sum + i;
cout<The entire no. Of the do is:<n;
4.Write a function in C+ to depend
iv) investigate the output: 2
v) What output will be the following code fragment produce?
Void main( )
int val, res, n=1000;
res = n+val >1750 ? Four hundred:200;
(i) if val=2000 (ii) if val=1000 (
Some question established on Board Examination Linked stack & Linked queue
Q1. Write a perform in C+ to delete a node containing consumers working out,
dynamically allotted Queue of patrons implemented with the aid of the next
8 9 eleven
There are 2 quads and one block after casting off the redundant firms.
Quad 1 (m0, m1, m4, m5) reduces to A' C '
Quad 2 ( m0, m2, m4, m6) reduces to B D
m10 = A B ' C D '
as a consequence, F( A, B, C, D ) = A'