Question: Language is C. Question 9 is dependent on Question 8. I've already answered 7 but I need to check if my answers are correct. Please

Language is C. Question 9 is dependent on Question 8. I've already answered 7 but I need to check if my answers are correct. Please give detailed explanations in your responses so I can understand for future reference. This will help me study.

7. State true or false strcmp("the", "them") is greater than 0. (I said true) strcpy (a,b) copies a to b, where a and b are two strings. (I said false here) strlen(Im fine) is 8. (I said false here too)

8. struct Point { int x, y; }; struct Line { Point a, b; }; Line image[10]; State True/False for the above declarations image is a struct b) image[6] is an array c) image[6].a is a struct d) image[6].a.x is a struct

9. Print the y coordinate of the a point on the 6th line for the example in problem 8.

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!