C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
66 / 90
Point out the error in the 'C' program?
#include<stdio.h>
int main()
{
char ch;
int i;
scanf("%c", &i);
scanf("%d", &ch);
printf("%c %d", ch, i);
return 0;
}
#include<stdio.h>
int main()
{
char ch;
int i;
scanf("%c", &i);
scanf("%d", &ch);
printf("%c %d", ch, i);
return 0;
}
AError: suspicious char to in conversion in scanf()
BError: we may not get input for second scanf() statement
CNo error
DNone of above
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!