FreeRTOS - Debugging and Monitoring
Which of the following is the correct way to use
configASSERT() to verify that a pointer ptr is not NULL?configASSERT() to verify that a pointer ptr is not NULL?ptr is not NULL, so the condition must be ptr != NULL.ptr != NULL. configASSERT(ptr = NULL); uses assignment instead of comparison, which is incorrect. configASSERT(ptr == NULL); checks if ptr is NULL, which is the opposite. configASSERT(!ptr); asserts if ptr is false (NULL), which is incorrect.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions