• CONTEST ALERT - Experience the power of DDR5 memory with Kingston Click for details

doubt between fscanf and fgets


Sami Hyypiä, LFC legend
but the advantage(s) of C++ over C must be kept in mind
Not sure how std::cin can be an advantage of C++ over C? Only advantage I can think of that you have to specify the format for the input in scanf which is not needed in std::cin. However both exhibit similar behaviour since they are usually implemented as line buffered.
^^ yes that, i'am sorry about the post.
i should have explained it.
reading this post now, i sound a lot like my coll professors

u explained it very well. thankyou
Top Bottom