+ 1
Anybody know
#include <stdio.h> int main() { int i; char n[20] = {"amalayakin"}; for(i = 0;i < 10; i++){ printf("%c",n[i]-32); } return 0; }
1 ответ
+ 5
'a' ascii value is 97
'A' ascii value is 65
97-65=32
So logically :
If you add 32 to a capital letter, you get ascii value of it's small letter.
Similarly, if you subtract 32 to a small letter ascii value, you will get ascii value of it's Capital letter.