Question: 1 . Given string str 1 and string str 2 , which expression is true? char str 1 [ 1 0 ] = Hi

1. Given string str1 and string str2, which expression is true?
char str1[10]="Hi"; char str2[10]= "Hello";
(a) strcmp(str1, str2)==0
(b) strcmp(str1, str2)<0
(c) strcmp(str1, str2)>0
(d) The comparison is not possible.

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 Programming Questions!