Question: Given the declaration: char str1[20]; char str2[15] = Fruit Juice: mark the following statements as valid or invalid. strcpy(str1, str2); A. valid if (strcmp(str1, str2)
Given the declaration: char str1[20]; char str2[15] = "Fruit Juice": mark the following statements as valid or invalid. strcpy(str1, str2); A. valid if (strcmp(str1, str2) -- 0) B. invalid cout - strlen(str2)) str 1 str1 = str2: st 2 N if (str1> str2) Fit cout str2."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
