What is the benefit of c++ input and output over c input and output?

a) Type safety
b) Exception
c) Both Type safety & Exception
d) Sequence container

1 thought on “ What is the benefit of c++ input and output over c input and output?”

  1. a
    Explanation: C++ input and output are type safety that means we don’t need to specify the type of variable we are printing.
    eg:
    in C we need to specify %d showing that an integer will be printed, whereas in C++ we just cout the variable.
    printf(“%d”, a);
    cout<<a;

Leave a Comment