DIT - C Arrays And Strings
Questions No: 1/12

Which library function is used to find the length of a string in C?
C में स्ट्रिंग की लंबाई ज्ञात करने के लिए किस लाइब्रेरी फ़ंक्शन का उपयोग किया जाता है?

Questions No: 2/12

How can you declare an array of 10 floating-point numbers?

Questions No: 3/12

Which of the following best describes an array in C?

Questions No: 4/12

What is the index of the first element in a C array?

Questions No: 5/12

Which of the following is the correct syntax for declaring a 2D array in C?

Questions No: 6/12

Which of the following is the correct way to initialize a string in C?

Questions No: 7/12

What is the output of the following code?

int arr[5] = {1, 2, 3, 4, 5};
printf("%d", arr[3]);

Questions No: 8/12

Which of the following correctly accesses the fifth element of an array arr?

Questions No: 9/12

Which of the following methods successfully gets the third element of an array named arr.
निम्नलिखित में से कौन सी विधि arr नामक सरणी के तीसरे तत्व को सफलतापूर्वक प्राप्त करती है।

Questions No: 10/12

Which library function is used to find the length of a string in C?

Questions No: 11/12

What will happen if you try to access an array element out of its bounds in C?

Questions No: 12/12

How are String represented in memory in C?