When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
42 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
The Q : To change letters from uppercase to lower case
The char letter; is creating a new uninitialized variable, shadowing the argument name
Basically delete line 6
Question: what should to lower return if you pass a lowercase letter?
This isn't a correct or not, this is a question of design.
If I run your code and type b what do you think it should print
Then check the return value, if it's negative, print -1, otherwise print the character (%c to print characters in C)
Cool
So in these kind of scenarios, the best way to help is to give us a sample input, what the expected output is and what your program is currently outputting
okay ...
Now i am getting this
the ASCII value of letters rather than the lower letters
what to do???
%c to print characters instead of %d
crct?
yahh
What does that mean
signed integers
@pulsar zodiac
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.