Q9
MCQ1 mark, −0.33Consider the following three ANSI-C programs, and .
\renewcommand{\arraystretch}{1.3} \begin{array}{|l|l|l|} \hline \quad\quad\quad \textbf{P1} & \quad\quad\quad \textbf{P2} & \quad\quad\quad \textbf{P3} \\ \hline \text{#include <stdio.h>} & \text{#include <stdio.h>} & \text{#include <stdio.h>} \\ \begin{array}{l} \text{int a=5;} \\ \text{int main()\{} \\ \quad \text{int a=7;} \\ \quad \text{return(0);} \end{array} & \begin{array}{l} \text{int main()\{} \\ \quad \text{int a=5;} \\ \quad \text{int a=7;} \\ \quad \text{return(0);} \end{array} & \begin{array}{l} \text{int main()\{} \\ \quad \text{int a=5;} \\ \quad \text{float a=7;} \\ \quad \text{return(0);} \end{array} \\ {\text{\}}} & {\text{\}}} & {\text{\}}} \\ \hline \end{array}Which one of the following statements is true?
Sign in to save attempts.
Loading…