Diwali Assignment Oct 2014 XII B (CS)
22/Oct/2014 (KV Balasore 2014-15) XII B (CS) 1). What is the difference between call by reference and call by value with respect to memory allocation ? Give a suitable example to illustrate using C++. 2). Define a class Competition in C++ with the following descriptions: Data Members: Event_no integer Description char(30) Score integer qualified char Member functions: - A constructor to assign initial values Event_No number as 101, Description as “State level”, Score is 50 and qualified as ‘N’. - Input(), To take the input for event_no, description and score. - Award(int), To award qualified as ‘Y’, if score is more than the cutoffscore passed as argument to the function else ‘N’. - Show(), To display all the details. 3). Obtain output from following program after including the desired header files. int main( ) { int array [ ]={ 2, 3, 5, 6}; int *arptr = array; int value =*arptr; cout<<value<<'\t'; value = *...