Page 1 of 1

Write a C program that on the input of a string w consisting of only letters, separates the lowercase and uppercase lett

Posted: Fri May 20, 2022 6:19 pm
by answerhappygod
Write a C program that on the input of a string w consisting of
only letters, separates the lowercase and uppercase letters. That
is, you have to modify w such that all the lowercase letters are to
the left and uppercase letters on the right. The order of the
letters need not be retained. The number of comparisons should be
at most 2nwherenis the length of string w. Assume that the length
of the input string is at most 49. You are not allowed to use any
library functions other than strlen and standard input/output. Your
program should have only the main()function.
Sample Output
Enter string: dYfJlslTwXKLp
Modified string: dpfwlslTXLKJY