What will be the output of the following C code?#include int main(){int *p = NULL;for (foo(); p; p = 0)printf("In for loop\n");printf("After loop\n");}

🎲 Try a Random Question  |  Total Questions in Quiz: 81  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C Programming Practice Test: Control Flow Statements in C — practice the complete quiz, review flashcards, or try a random question.

C Language quiz questions on: Switch statements, if-then-else statements, for and while loops, break and continue, goto and labels. In C programming, control flow statements are statements that alter the normal flow of execution of a program. They allow programmers to control which parts of the code are executed based on certain conditions or repetitions. There are three types of control flow statements in C: Selection statements: These statements allow programmers to make decisions about which parts of the code to execute. The most common selection statement is the if statement, which... Show more

What will be the output of the following C code?<br>#include <stdio.h><br>int main()<br>{<br>int *p = NULL;<br>for (foo(); p; p = 0)<br>printf("In for loop\n");<br>printf("After loop\n");<br>}