please explain the use of cin.get() in video in detail? i am not able to sort third element without writing cin.get() before inputing elemnts.
Please explain the use of cin.get() in detail? i am not able to sort third element without writing cin.get() before inputing elemnts
@Prabhleen_sheenu after we input an integer if we use get line it will take enter \n as input too which we gave after input integer. thats why we use cin.get() after input integer.
dont forget to hit like and mark resolved if cleared 
1 Like