Explore topic-wise MCQs in C.

This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your C knowledge and support exam preparation. Choose a topic below to get started.

1.

To have GCC inline the given function regardless of the level of optimization, we must declare the function with the attribute _________________

A. optimize_inline
B. packed_inline
C. always_inline
D. level_inline
Answer» C. always_inline
2.

The following C code results in an error. State whether this statement is true or false.

A. True
B. FalseView Answer
Answer» B. FalseView Answer
3.

Name the function whose definition can be substituted at a place where its function call is made _________

A. friends function
B. inline function
C. volatile function
D. external function
Answer» C. volatile function
4.

S?$

A. n
B. a
C. error
Answer» C. error
5.

Name the function whose definition can be substituted at a place where its function call is made:

A. friends function
B. inline function
C. volatile function
D. external function
Answer» C. volatile function