Complete the code to declare a buffer for vTaskList output.
char [1][512];
The buffer taskListBuffer is declared to hold the task list output.
Complete the code to call vTaskList with the buffer.
vTaskList([1]);The function vTaskList requires a character buffer to write the task status list. Here, taskListBuffer is passed.
Fix the error in printing the task list buffer.
printf("[1]", taskListBuffer);
The printf format specifier for strings is %s. Using %s correctly prints the task list buffer.
Fill both blanks to declare and initialize the buffer size for vTaskList.
char [1][[2]];
The buffer taskListBuffer is declared with size 512 to hold the task list output safely.
Fill all three blanks to declare buffer, call vTaskList, and print the result.
char [1][[2]]; vTaskList([3]); printf("%s", [3]);
The buffer taskListBuffer is declared with size 512. It is passed to vTaskList and then printed using printf.