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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply