Question: int arr[10]; Given the array declaration above, which of the following array operation are supported by the standard C library? i) arr.length() ii) arr[-1] iii)

int arr[10];

Given the array declaration above, which of the following array operation are supported by the standard C library?

i) arr.length()

ii) arr[-1]

iii) arr[3:4]

iv) None of the above

int arr[10][50];

The code above statically allocates a 2D array with 10 rows and 50 columns. If instead we were to allocate this 2D array dynamically, how many calls to malloc() would be needed such that we can still use the arr[i][j] access syntax?

a) 10

b) 11

c) 50

d) 51

e) 1

char buf[50];

Given the character array declaration above, what would be the data types of the following?

*buf

buf

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!