Function pointers in C can be passed as arguments to functions, thereby providing a degree of ________.
- Abstraction
- Encapsulation
- Flexibility
- Polymorphism
In C, function pointers enable polymorphism by allowing you to call different functions dynamically. This provides flexibility in your code.
Loading...
Related Quiz
- In C, a structure is a user-defined data type that allows grouping of variables of ________ data types.
- When reading a text file in C, which function can be used to read data from the file?
- What is a potential risk when using the strcpy function in C?
- Which function is used to close a file that has been opened using fopen?
- In a graphics program, you need to define colors where each color can be represented as either a name or an RGB triplet. How would you efficiently represent this in C?