Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

teacher im in the c exam, please be fastly A Sesli oku iz Programming Language 1 Second Midterm Session 3 Re-write the following C program

image text in transcribed

image text in transcribed

teacher im in the c exam, please be fastly

A Sesli oku iz Programming Language 1 Second Midterm Session 3 Re-write the following C program by using the function prototypes given. The function prototypes are: 1. void read_string(char str[]); this function reads a string by character by until the user enter return; (Hint: you can use the lines 11,12 and 13 for this function body) 2. void get_string_without_space(char str[],char copy[]); this function gets the copy of the string without space and new string is stored in string copy. 3. int palindrome(char str[]); this function checks whether the string str is palindrome or not. If it is palindrome returns 1 otherwise it returns 0. (Hint: you can use the following function (int length(char str[);) 4. int length(char str[ ]); this function returns the number of characters in the string str. Notice: Save your source code with the name given in form Name SurnameStudentNumber.c (Ex: ZahidCaliskan 12058030.c) and then zip it. After upload your zip file using online system. After the exam duration, the source code sent by e-mail will not be accepted. Please Go to Next Page + A Sesli okul VG line 1: #include line 2: #define SIZE 80 line 3: int main() line 4: { line 5: char c; line 6: char string( SIZE ); line 7: char copy[ SIZE ); line 8: int count = 0; line 9: int copyCount; line 10: int i,n,flag=1; line 11: printf( "Enter a sentence: "); line 12: while ((c = getchar() ) != ' ' && count

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

More Books

Students also viewed these Databases questions

Question

What lessons in OD contracting does this case represent?

Answered: 1 week ago

Question

Does the code suggest how long data is kept and who has access?

Answered: 1 week ago