Question: how can i compare two strings that have spaces in them in the c language? for example: i am working on an assignment where i

how can i compare two strings that have spaces in them in the c language? for example:

i am working on an assignment where i have to code a program to use binary search. My program is going to output guesses and my professor is going to input my program whether my guess is colder, warmer, or no change, meaning whether im getting closer or further away from the number the professor chose. what im thinking is doing a loop while the input is Colder or Warmer, and im thinking of reading the imput and comparing it to a string already defined by me as Colder or warmer. I would appreciate the help.

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!