+ 1
Can anyone explain this code.
#include <stdio.h> #include <ctype.h> int main() { char c; c = 'z'; printf("\n %c->%c", c,tolower(c)); c='A'; printf("\n %c->%c", c,tolower(c)); c= 9; printf("%c->%c", c,tolower(c)); return 0; }
4 odpowiedzi
+ 5
Sachin Shah You are printing the value 9 as a char. 9 in ASCII is a horizontal tab character.
http://www.asciitable.com/
+ 3
https://devdocs.io/c/string/byte/tolower
"... Converts the given character to lowercase according to the character conversion rules defined by the currently installed C locale... "
Is there anything else you do not understand about the code?
+ 1
Yeah thanks dude Hatsy Rei
0
But in third case what happened Hatsy Rei