Care to elaborate? Because with what the OP wanted, and run from a Linux environment with the gcc compiler there are no warnings or errors and the program runs as requested producing the correct output. If you're referring to optimization then of course it can be made better. Interested in hearing where the 'problems' exist. Thanks!Quote:
Originally Posted by Salem
-Capt
If you don't want to post the elaboration, feel free to message me.
EDIT: one optimization might be instead of c = tolower( c ); simply do printf( "%c", tolower( c ) ); But didn't want to confuse a beginner.