+1 vote
in Data Structures & Algorithms I by (110k points)
Assuming int is of 4bytes, what is the size of int arr[15];?

(a) 15

(b) 19

(c) 11

(d) 60

The above asked question is from Array and Array Operations topic in chapter Abstract Data Types of Data Structures & Algorithms I

The question was posed to me by my college professor while I was bunking the class.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Right choice is (d) 60

Best explanation: Since there are 15 int elements and each int is of 4bytes, we get 15*4 = 60bytes.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...