Daily Archives: February 8, 2020
Infix to postfix 2011
Convert the following infix expression to its postfix form a + b * c – d / e input action stack status output c push c a print c a + push c+ a b print c+ ab * push … Continue reading
Array address calculation 2014
An array AR[-4…6, -2 … 12] stores elements in Row Major wise, with the address AR[2][3] as 4142. If each element requires 2 bytes of storage. Find the Base address Given i =2, j=3, W= 2 bytes B=? AR[-4 …6, … Continue reading
Array address calculation 2013
A square matrix M[][] of size 10 is stored in the memory with each element requiring 4 bytes of storage. If the base address is M[0][0] is 1840, determine the address at M[4][8] when the matrix is stored in Row … Continue reading
Array address calculation 2012
A matrix B[10][7] is stored in the memory with each requiring 2 bytes of storage. If the base address at B[x][1] is 1012 and the address at B[7][3] is 1060 determine the value of ‘x’ where the matrix is stored … Continue reading
Array address calculation 2011
A square matrix A[mxm] is stored in the memory with each element requiring 2 bytes of storage. If the base addressA[1][1] is 1098 and the address at A[4][5] is 1144, determine the order of the matrix A[mxm] when the matrix … Continue reading