Consider a scenario where a program needs to store a character read from a file. Which data type would be appropriate for this?
- char
- double
- float
- int
To store a character read from a file in C, the appropriate data type is 'char' as it can represent individual characters effectively.
Loading...
Related Quiz
- What is the term used to describe the number of indices needed to select an element in a multidimensional array?
- To allocate memory dynamically and initialize it to a specific value, the ________ function can be used in C.
- What is the primary difference between the scope and the lifetime of a variable?
- To write data to a file, the file must be opened in ________ mode.
- In a program that processes large volumes of numerical data, which file format would be more efficient in terms of storage space and data retrieval speed?