Question: 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

 c programming 1. Finish writing this program that finds the length

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!