dear friends, I am a beginner in c programming and I have learned the c++, java as well,
In C I have been asked for a question about how to convert lower case string like any name into uppercase,
and i have read a program for it by pointers and I wanna do it by using typecasting and ascii values for characters so if anyone can help me on that.
Prashant_4
0
Newbie Poster
Recommended Answers
Jump to Posttypecasting doesn't work. You use the macro toupper() on each character in the string (use a loop)
Example
char c = 'a'; c = toupper(c); // convert to upper-case printf("%c\n", c);
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
David W
131
Practically a Posting Shark
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
naveen1993
-3
Newbie Poster
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.