Sail E0 Webinar
Question


Point out the error in the program?


#include<stdio.h>
int main()
{
char ch;
int i;
scanf("%c", &i);
scanf("%d", &ch);
printf("%c %d", ch, i);
return 0;
}
Options:
A .  Error: suspicious char to in conversion in scanf()
B .  Error: we may not get input for second scanf() statement
C .  No error
D .  None of above
Answer: Option B



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers