Multiple choice technology

Is a correct representation for Function Pointer: int (*pt2Function) (float, char, char)

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct syntax for declaring a function pointer in C. 'int (*pt2Function) (float, char, char)' declares pt2Function as a pointer to a function that takes a float and two char parameters and returns an int. The parentheses around *pt2Function are crucial - they make it a pointer to a function rather than a function returning a pointer.