let i store in string 1 when we write equivality condition write in s[i]==49 why?
why we not write in s[i]==1
s[i] i stored 1 but when we print then 1 output come and another case we compare another it treated as ascii value 49 why?
String doubts when we aasing int value
string and int are different data type
string s=1 is not equal to int x=1
as ascii value of 1 is 49 so u have to as id u write string s=49 it will implict convert it into 1 as data type on both side are not equal