What is the purpose of the new C11 keyword _Generic?

What is the purpose of the new C11 keyword _Generic?
A . To specify the alignment of data structures
B . To declare variables with a generic data type
C . To provide generic error handling in functions
D . To define generic functions that can operate on different data types

Answer: D

Explanation:

The new C11 keyword _Generic allows the definition of generic functions that can operate on different data types.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments