674 views

2 Answers

4 4 votes
$\color{magenta}\text{1D Array}:$ $a[i] \Rightarrow \ * \ (a+i)$

$\color{DarkOrange}\text{2D Array} :$ $a[i][j] \Rightarrow \  *( \ * \ (a \ + \ i) + j)$

$\color{green}\text{3D Array} :$ $a[i][j][k] \Rightarrow \ *( \ *( \ * \ (a \ + \ i ) + j) + k )$

$\color{cyan}\text{4D Array} :$ $a[i][j][k][l] \Rightarrow \ * ( \ *( \ *( \ * \ (a \ + \ i ) + j) + k ) + l) $

 

$\color{red}\textbf{Ans:}$ $b) \ a[i][j][k][2] \Rightarrow \ * ( \ *( \ *( \ * \ (a \ + \ i ) + j) + k ) + 2) $
• edited by
0 0 votes

here i,j,k and pointers and 2 is location of int. so we need 4* to go location of integer. so ans. is option b

Position:
Show:

Related questions

0 0 votes
0 0 answers
1.7k
1.7k views
begonethots asked Apr 12, 2022
1,685 views
Hello everyone!I am looking for resources to study the gate subjects in some depth such that it helps in gate as well as psu/mtech interview preparation. Well of course, ...
1 1 vote
0 0 answers
1.6k
1.6k views
shraddha priya asked May 18, 2019
1,582 views
Why does OS and DBMS have their own synchronisation mechanisms, when OS can alone do it and it sits at the bottom of DB?
4 4 votes
0 0 answers
1.0k
1.0k views
subho16 asked Feb 9, 2019
1,012 views
I am a dropper and have worked an year on machine learning in the industry. I want to do learn more about ML/AI and image processing. I am getting a rank around 200(from ...
4 4 votes
0 0 answers
890
890 views
subho16 asked Feb 9, 2019
890 views
I am getting a score of 69.33(according to GO answer key and an expected rank around 200), what are the chances for me getting admissions in old IITs(top 5) ? How can I k...