B. Missing parentheses when calling xEventGroupCreate
C. No check for NULL handle
D. Using wrong function name
Solution
Step 1: Check function call syntax
The code assigns xEventGroupCreate without parentheses, so it assigns the function pointer, not the result.
Step 2: Understand correct usage
To call the function and get the handle, parentheses are required: xEventGroupCreate().
Final Answer:
Missing parentheses when calling xEventGroupCreate -> Option B
Quick Check:
Function call needs () = B [OK]
Hint: Always use () to call functions, not just name [OK]
Common Mistakes:
Forgetting parentheses on function calls
Confusing function pointer with return value
Not checking for NULL after creation
5. You want to create an event group and ensure your program handles failure gracefully. Which code snippet correctly creates the event group and checks for failure?