Can you place a function call inside the initialization part of the for loop?
for (printf("Init\n"); i < 3; i++) {
printf("Body\n");
No, only variable declarations are allowed
Only arithmetic expressions are allowed
Causes a runtime error
Yes, function calls are valid
This question is part of this quiz :
C Loops and Conditional statements