Getline() doubt

sir in getline why are we passing cin as parameter?

hello @tejasddongare


these are the parameters that getline takes.

cin is istrem object thats why we are passing it in getline