+ 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 Answer
+ 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.
Hot today
Please help, any idea?
2 Votes
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
1 Votes
What is wrong? Error on test.
1 Votes
Help me solve this (using loop)
1 Votes
Help me wiht python
1 Votes
how can i flip any word with c++
0 Votes