Largest string doubt

sir i still don’t get how did we remove \n i.e null string while using only cin.getline(a,1000)
and what is the function of cin.get()

hello @udaycodingblocks

refer this discussion->
Why not cin.get(a) for first string

also let me know incase if u still face any issue