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
Get step-by-step solutions from verified subject matter experts
