If the content of Array ARR is 90, 56, 45, 20, 34, 54 The content of array ARR should become 56, 90, 45, 34, 20, 54 An array T[20][10] is stored in the memory along the column with b) each of the elements occupying 2 bytes. Find out the memory location of T[10][5], if the element[2][9] is stored at the location 7600. c) Write a function in C++ to perform Insert operation in a static circular Queue containing Book’s information (represented with the help of an array of structure BOOK). struct BOOK { long Accno; //Book Accession Number char Title[20]; //Book Title }; d) Write a function ALTERNATE (int A[ ][3], int N, int M) in C++ to display all alternate elements from two-dimensional array A (starting from A[0][0]). For example: If the is containing: 23 54 76 37 19 28 62 13 19 The output will be: 23 76 19 62 19 e) Evaluate the following POSTFIX notation. Show the status of stack after every step of evaluation (i.e. after each operator):True, False, NOT, AND, False, True, OR, AND [3+3+4+2+2 = 14] ANSWERS
If the content of Array ARR is 90, 56, 45, 20, 34, 54 The content of array ARR should become 56, 90, 45, 34, 20, 54 b) An array T[20][10] is stored in the memory along the column with each of the elements occupying 2 bytes. Find out the memory location of T[10][5], if the element[2][9] is stored at the location 7600. c) Write a function in C++ to perform Insert operation in a static circular Queue containing Book’s information (represented with the help of an array of structure BOOK). struct BOOK { long Accno; //Book Accession Number char Title[20]; //Book Title }; d) Write a function ALTERNATE (int A[ ][3], int N, int M) in C++ to display all alternate elements from two-dimensional array A (starting from A[0][0]). For example: If the is containing: 23 54 76 37 19 28 62 13 19 The output will be: 23 76 19 62 19 e) Evaluate the following POSTFIX notation. Show the status of stack after every step of evaluation (i.e. after each operator):True, False, NOT, AND, False, True, OR, AND [3+3+4+2+2 = 14] ANSWERS
1780312599datastructure_questions.docx