C Programming :: Loop Control - Discussion
Home > C Programming > Loop Control > MCQs Questions Discussion
13 / 61
What is the output of the following 'C' program?
#include<stdio.h>
int i;
void main(){
int t;
for ( t=4;scanf("%d",&i)-t;printf("%d\n",i))
printf("%d--",t--);
}
// If the inputs are 1,2,3 find the o/p
#include<stdio.h>
int i;
void main(){
int t;
for ( t=4;scanf("%d",&i)-t;printf("%d\n",i))
printf("%d--",t--);
}
// If the inputs are 1,2,3 find the o/p
ACompilation Error
B4--1 3--0 2--2
CRun time Error
D4--0 3--1 2--2
ENone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!