1.) A string is a one-dimensional array of characters. True False 2.) In C, arra
ID: 3776500 • Letter: 1
Question
1.) A string is a one-dimensional array of characters. True False
2.) In C, arrays may be used to store the entire contents of a data file. True False
3.) In C, the array w[3][4] indicates that w is an array with 3 columns and 4 rows. True False
4.) The conversion specifier for a character string is “%s.” True False
5.) A structure is a collection of one or more related variables that do not all need to have the same data type. True False
6.) Arrays in C can have _____ dimensions.
A. no less than two B. no more than 4 C. no more than 100 d. None of the above
Explanation / Answer
1.) A string is a one-dimensional array of characters.
Answer:- True
Strings are one-dimensional array of characters terminated by a nullcharacter ''.
--------------------------------
2.) In C, arrays may be used to store the entire contents of a data file.
Answer:- True
Yes it amy possible to store the entire contents of a data file into array
-------------------------------------------------------------------------------
3.) In C, the array w[3][4] indicates that w is an array with 3 columns and 4 rows.
Answer:- False
w[3][4] indicates that w is an array with 4 columns and 3 rows.
------------------------
4.) The conversion specifier for a character string is “%s.”
Answer:- True
conversion specifier for a character string is “%s.”
example:-
-----------------------------------------
5.) A structure is a collection of one or more related variables that do not all need to have the same data type.
Answer:- True
example:-
--------------------------------------------------------------------------
6.) Arrays in C can have _____ dimensions.
A. no less than two B. no more than 4 C. no more than 100 d. None of the above
Answer:- D
On C there is no limit of array dimensions
---------------------------------------------------------------------------------------------
If you have any query, please feel free to ask.
Thanks a lot.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.