Input / Output

Q1:
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;
}

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

ANS:A - Error: suspicious char to in conversion in scanf()

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.