Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c programming 1. Finish writing this program that finds the length of a string #include int main(int argc, char **argv) char string [100] = This

image text in transcribed

c programming

1. Finish writing this program that finds the length of a string #include int main(int argc, char **argv) char string [100] = "This is a really long string"; int length; printf ("The length of the string is %d ", length); When run, you should get: $./a.out The length of the string is 28 Add some code that capitalizes the string. Remember that upper-case characters A' to the ASCIl numbers 0x41-0x5A and the lower-case characters 'a' to 'z' are the ASClI numbers 0x61-0x7A. So, you need to loop over the string, and whenever you find a lower-case character, subtract 0x20 from it. 2. are #include int main(int argc, char **argv) char string[100] = "This is a really long string"; int length; printf("The length of the string is %d ", length); printf("The capitalized string is %s ", string)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Describe the human resource management profession.

Answered: 1 week ago