hello i know there are many questions about unsigned and signed but believe me i have searched all and learned a lot but there is still one doubt which i cannot find anywhere thats why asked this question
wanna know when unsigned minus signed is calcuated one needs to be converted into same data type....now for example s.size()-2 for s.size()<2(and i know s.size() is unsigned) converts signed to unsigned like -2 will be converted into unsigned and i will get the big value got it but when s.size() is 4 i get the output as 2 that means 4-2 so here is unsigned converted into signed?? or if signed is converted to unsigned then agin -2 will be converted and this time the output will be different so i want to know what happens in both the cases and in which one it is converted.