Recent questions tagged array

0 votes
0 answers
1
Consider an integer upper triangular 2D array arr[–8 to +7][–8 to +7] having base address 1000. If the size of the integer is 4 bytes, the address of the element pres...
0 votes
1 answer
2
1 votes
1 answer
4
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?
1 votes
1 answer
5
Does C support fractional Indices?float x = some fraction;Is float a[x] valid declaration?
1 votes
1 answer
9
Which of the following is true for a sorted list with ' $n$ ' elements?Insertion in a sorted array takes constant time.Insertion in a sorted linear linked list takes cons...
1 votes
1 answer
10
How is the address written for 3-dimensional arrays?In some answers, I saw (row, column, frame) and in others, it was (frame, row, column) Which one to follow??Also, how ...
1 votes
1 answer
13
Can an array store elements of different storage classes?
1 votes
1 answer
14
3 votes
2 answers
15
In QuickSort algorithm, which of the following statements is NOT true regarding the partition process?a) Partition always divides the array into two non-empty subsets.b) ...
0 votes
1 answer
16
We have stored an element after a few elements in an array, where the array size is unknown, then find the position of in array.
0 votes
1 answer
20
What is the logic applied here.
1 votes
2 answers
21
The return value of ace(4) is int ace(int a) { int x=1; static int k=1; if(a==1) return x; for(;k<a;++k) x=x+ace(k)*ace(a-k); return x; }A.15B.4C.10D.Error