C MCQs - 6

Which of the following is true regarding the sizeof operator in C? a) It is a preprocessor directive b) It returns the size of a variable ...

C MCQs - 5

Which statement is used to dynamically allocate memory for an array in C? a) new b) malloc c) allocate d) array_alloc Answer: b) m...

C MCQs - 4

What does the fprintf() function do in C? a) Reads formatted data from a file b) Writes formatted data to a file c) Reads formatted data...

C MCQs - 1

What does the sizeof operator return in C? a) Size of a variable in bytes b) Size of a datatype in bytes c) Size of a pointer in bytes ...