Which of the following correctly declares and initializes a 2D array?
What is the relationship between array name and pointer in C?
If str = "Hello", what is the value of str[5]?
What does strlen() function return for the string "C2025"?
In a 2D array int matrix[4][5], which statement about memory layout is true?
Advertisement
What is the output of sizeof(arr)/sizeof(arr[0]) when arr is declared as int arr[10]?
Which string function modifies the original string in-place?
Consider: int arr[3][4][5]. What is the size of arr[0][0]?
Which of the following is true about strcpy(dest, src)?
What is the main difference between char arr[] = "Test" and char *ptr = "Test"?
If ptr is a pointer to int array and ptr = arr, what does ptr[3] represent?
What happens when you try to modify a string literal in C?
What is the correct way to safely copy strings in modern C?
In the declaration int *arr[10], what is arr?
What is the time complexity of inserting an element at the beginning of an unsorted array?
What will be the output of the following code?
int arr[] = {1, 2, 3, 4, 5};
printf("%d", *(arr + 3));
Which of the following correctly declares a 2D array of strings?
What is the output of strlen("Hello") in C?
How many bytes are allocated by: int arr[10][20];?
Which function is used to find the first occurrence of a character in a string?