Home / C Programming / Input / Output :: Discussion

Discussion :: Input / Output

  1. Point out the error in the program?

      #include
      int main()
      {    
           char ch;    
           int i;   
           scanf("%c", &i);     
           scanf("%d", &ch);     
           printf("%c %d", ch, i);     
           return 0;
     } 
    

     

  2. 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

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment