Question: Any other language rather than C language will be not accepted. Q1) Write a C program that takes two-character arrays of size 30 from the

Any other language rather than C language will be not accepted. Q1) Write a C program that takes two-character arrays of size 30 from the user using scanf function. Then write a function called stringcheck. This function receives the strings as two pointer arguments and check if the strings are same or not. If the strings are same, the function will return 1 and if they are not same, the function will return 0. Finally, print on the screen Two words are same if the function return output is 1 and Two words are different if the function return output is 0. hint 1: Pass the arguments using call-by-reference method. hint 2: Use the function prototype: int stringcheck(const char *sPtrl, const char *sPtr2 ); hint 3: Use a loop to check each character of the strings and if there is a character mismatch between the strings, return 0. If all the characters are same, outside the loop return 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
