Recent questions tagged array

0 votes
1 answer
151
According to me Option D.Because it should be an error because *("INDIA" + 2 ) = 'D' and we are doing 'D' = 'I' which is not valid so Error ???But answer is C
1 votes
1 answer
152
Can anyone please verify whether I have calculated the addresses correctly or not?
0 votes
1 answer
154
Given an sorted array in descending order, what will be the time complexity to delete the minimum element from this array?
0 votes
1 answer
157
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]?A. ((((a+i)+j)+k)+l)B. *(*(*(*(a+i)+j)+k)+l)C. (((a+i)+j)+k+l)D. ...
0 votes
3 answers
158
3 votes
2 answers
160
Given an array $A[-1:6,-2:10] $. The base address of array is $1000$. If every elements take $4$ Bytes for storage . Then compute the address of element $A[5,7]$. Assum...
3 votes
1 answer
161
Given A, an array of size n, comprised of an increasing sequence of numbers followed immediately by a decreasing one. What is worst case time complexity of optimal algori...
1 votes
0 answers
163
3 votes
2 answers
164
Consider 3 dimensional Array A[90] [30] [40] stored in linear array. If the base address starts at 10, The location of A [20] [20] [30] in case of RMO and CMO are _______...
3 votes
1 answer
165
3 votes
0 answers
166
2 votes
1 answer
167
2 votes
1 answer
168
Consider 3 dimensional Array A[90] [30] [40] stored in linear array in column major order. If the base address starts at 10, The location of A [20] [20] [30] is ________....
2 votes
1 answer
172
Consider a lower triangular Matrix A[-25....+25, -25....+25], base address (BA)=0, size of element = 100 Byte. Find the location of a [-20][-21] (Ordering: Row Major)?
1 votes
1 answer
173
4 votes
3 answers
175
#include<stdio.h int main() { int arr [3] ={{{2,4},{7,8},{3,4},},{{2,2},{2,3},{3,4},}}; print("\n%d", (*arr+1)+2+7); return 0; } plz explain this program, internally how ...
0 votes
0 answers
177
1 votes
0 answers
179
Consider X[1...n] and Y[1...n] be two arrays, each containing n numbers both of which already sorted. What is the time complexity to find the median by combining two arra...
0 votes
1 answer
180
An array a of unknown size is filled with special symbol let's say # . Time required to find the size of a is:Please give proper explanation