Use of string t(a) int the code

Sir/Mam, in the given code to remove redundant strings we used set but in the code sir have used string t(a ),
how they have declared the array a in the string t ?

Thanks

hi @94217846kunal

string t(a) 

what this do is simply convert the character array in string… as u can see we have sent char array in function and set stores only string, so this is an inbuilt function to directly convert char array to string… that’s all

hi @94217846kunal
is it clear now???

thankyou Bhaiya clear ho gya

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.