[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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

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 :: Capgemini

Post Your Answer Here:     

No Discussion on this question yet!