"what s-'0' does" Code Answer's
You're definitely familiar with the best coding language C++ that developers use to develop their projects and they get all their queries like "what s-'0' does" answered properly. Developers are finding an appropriate answer about what s-'0' does related to the C++ coding language. By visiting this online portal developers get answers concerning C++ codes question like what s-'0' does. Enter your desired code related query in the search bar and get every piece of information about C++ code related question on what s-'0' does.
what s[i]-'0' does
It seems that s is a character array or a pointer to the first
element of a character array. And element s[i] contains a character
that represents a digit as for example '5' . To convert this character
that for example in ASCII has internal code equal to 53
(while internal code of character '0' is 48) there is used expression
s[i] -'0'
that is equivalent to
53 - 48
and equal to number 5
what s[i]-'0' does
'0' - 48
'1' - 49
'2' - 50
'3' - 51
'4' - 52
'5' - 53
'6' - 54
'7' - 55
'8' - 56
'9' - 57
Source: stackoverflow.com
All those coders who are working on the C++ based application and are stuck on what s-'0' does can get a collection of related answers to their query. Programmers need to enter their query on what s-'0' does related to C++ code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about what s-'0' does for the programmers working on C++ code while coding their module. Coders are also allowed to rectify already present answers of what s-'0' does while working on the C++ language code. Developers can add up suggestions if they deem fit any other answer relating to "what s-'0' does". Visit this developer's friendly online web community, CodeProZone, and get your queries like what s-'0' does resolved professionally and stay updated to the latest C++ updates.