Question
Computer Knowledge
The most common use of the one-dimensional array in C is the:
C में वन-डायमेंशनल ऐरे का सबसे आम इस्तेमाल है:
Correct Answer:
A (string)
A (स्ट्रिंग)
Detailed Solution:
Key Points
- One-dimensional arrays in C are commonly used to store sequences of elements of the same type.
- Among the given options, a string is the most common use of one-dimensional arrays in C.
- A string in C is essentially an array of characters terminated by a null character '\0'.
- This allows for efficient handling of text data in programs, such as storing and manipulating words and sentences.
मुख्य बातें
• C में वन-डायमेंशनल ऐरे का इस्तेमाल आम तौर पर एक ही तरह के एलिमेंट्स के सीक्वेंस को स्टोर करने के लिए किया जाता है।
• दिए गए विकल्पों में से, C में वन-डायमेंशनल ऐरे का सबसे आम इस्तेमाल स्ट्रिंग है।
• C में स्ट्रिंग असल में कैरेक्टर्स का एक ऐरे होता है जो नल कैरेक्टर '\0' पर खत्म होता है।
• इससे प्रोग्राम में टेक्स्ट डेटा को आसानी से हैंडल किया जा सकता है, जैसे शब्दों और वाक्यों को स्टोर करना और उनमें बदलाव करना।
Exam Preparation Simplified
Learn
Practice
Analyse
Improve
Get Started Free
Download the App
Trusted by 8.1 Crore+ Students