Data type
Dimension
name
Data type and Dimension
function
structure
array
union
strlen()
sizeof()
length()
strlength()
What is the output of the following code?
int arr[5] = {1, 2, 3, 4, 5}; printf("%d", arr[3]);
1
2
3
4
arr[4]
arr(5)
arr[5]
arr[6]
int arr[10][10];
int arr[10,10];
array int arr[10][10];
int arr{10}{10};
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
0
-1
Depends on array size
A collection of variables of different data types
A collection of elements of the same data type stored in adjacent memory locations
A single variable that stores multiple values
None of the above
An array of characters
The object of some class
Same as other primitive data type
Linkedlist of characters
float arr[10];
float arr(10);
float arr = [10];
array float arr[10];
Compilation error
Program will terminate with an error
Undefined behavior
Array index will wrap around
arr[2]
arr(2)
arr[3]
arr[1]
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
ctype.h
stdio.h
conio.h
math.h
Return
GOTO
Switch
exit
string.h
graphic.h
one word at a time on the screen
one character at a time
result on the screen
power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist