1. Write a program that sorts a set of fi ve single-word strings input from the keyboard using a 2D char array and the bubble sort algorithm. 2. Develop a function named str_compare(s1, s2) which...


1. Write a program that sorts a set of fi ve single-word strings input from the keyboard using a 2D char array and the bubble sort algorithm.


2. Develop a function named str_compare(s1, s2) which returns a positive integer if any character of string s2 occurs in s1. The function must return -1 on failure.


3. For comparing two structures, the expression s1 == s2 is (A) legal, (B) illegal, (C) legal only if s1 and s2 are based on the same template, (D) legal only if s2 is a template.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here