alphabet from lower to upper , using ascii
what logic should be use to convert small letters into capital using ascii codes??
for example ascci code for A is 65 and ascii code for a is 97
how can i coonvert from integers to character ?
Xufyan
-4
Posting Whiz
Recommended Answers
Jump to PostWhat about using char ch = 'a'; and then ch++; 26 times?
char toCap = 'a';
toCap -= ('a' - 'A');int integer = 0;
integer += 'a' for lowercase,Now print it with a %c and with a %d :)
And what would it be …
Jump to PostDo you know this feature of characters in C?
char ch = 'A'; ch = ch + 1; printf("%c", ch);
Output
B
Now, you said ASCII code of 'A' = 65 & ASCII code of 'a' = 90, hence try to figure how much …
All 6 Replies
Banfa
597
Posting Pro
Featured Poster
Adak
419
Nearly a Posting Virtuoso
xavier666
56
Junior Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Banfa
597
Posting Pro
Featured Poster
Xufyan
-4
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.