Is c.get() necessary?

what is the ue of it ??? my code would have run smmotly even without it i guess…

hello @manthan.joshi.jiit

if u are reading string after integer then use cin.get
it will consume extra \n present inside buffer.
in other cases it is not necessary