Page 1 of 1

A) B)

Posted: Thu May 26, 2022 9:53 am
by answerhappygod
A)
A B 1
A B 1 (39.22 KiB) Viewed 14 times
B)
A B 2
A B 2 (26.11 KiB) Viewed 14 times
Implement a function named endsWith(...) that receives two strings str1 and str2 as arguments and returns 1 if str1 ends with str2. Page 1 of 3 Examples. strl str2 result HELLO LLO HELLO HELLO HELLO OK HELLO HELLOO HELLO HHELLO 0 Notes: • The sizes of the strings are not known. Computing them might help in your solution! • You are not allowed to use array notation and/or functions from the string.h library in your implementation. Use pointers and pointer arithmetic only Write a full C program that reads 10 email addresses. For each email, the program must and check if it is a valid PSUT email address (ends with "@std.psut.edu.jo"). Notes: • You can assume that entered emails do not contain more than 30 characters. • You must call function endsWith(...) in your implementation. • You are not allowed to use any function from the library string.h. LL 1 1 OOO
implement a function named is palindrome with the following header int is palindrome (char* str, int start, int end) the function returns 1 if the string is palindrome and returns 0 otherwise Note: a string is palindrome if it reads the same form left to right and from right to left eg: mom Page 2 of 3 Write a full C program that reads strings. For each string, the program must check if it is a palindrome or not Notes: • You can assume that entered strings do not contain more than 30 characters. • You must call function is palindrome (...) in your implementation. • You are not allowed to use any function from the library string.h.