Revision: Data Structures Computer Science (C++) Science (English Medium) Class 12 CBSE
- Write a Function Revrow(Int P[] [5], Int N, Int M) in C++ to Display the Content of a Two-dimensional Array, with Each Row Content in Reverse Order. for Example, If the Content of the Array is as Follows:
- Write a Definition for a Function Upperhalf(Int Mat[4][4]) in C++ Which Displays the Elements in the Same Way as per the Example Is Shown Below. Thew Function Should Display The Content in the Following Format:
- Let Us Assume Data[20][15] is a Two-dimensional Array, Which is Stored in the Memory Along the Row with Each of Its Elements Occupying 2 Bytes. Find the Address of the Element Data(10][5], If the Element Data[10][L5] is Stored at the Memory Location 15000.
- Write the Definition of a Function Sumeo(Int Values[], Int N) in C++, Which Should Display the 4 Sum of Even Value and Sum of Odd Values of the Array Separately Example: If the Array Values Contains Sum of Even Values = 42 (I.E., 20+22) Sum of Odd Values= 99 (I.E., 25+21+53)
- Arr[15] Ft:20] is a Two-dimensional Array, Which is Stored in the Memory Along the Row with Each of Its Elements Occupying 4 .Bytes. Find the .Address of the Element Arr[5)[15], If the Element Arr[Lo] [5] is Stored at the Memory Location 35000.
- A Two Dimensional Array Arr[50][20] is Stored in the Memory Along the Row with Each of Its Elements Occupying 4 Bytes. Find the Address of the Element Arr[30] [10], If the Element Arr[10] [5] is Stored at the Memory Location 15000.
- Wnte the Definition of a Member Function Addpac Ket() for a Class Queue in C++, to Remove/Delete a Packet from a Dynamically Allocated Queue of Packets' Considering the Following Code is Already Written as a Part of the Program.