String index always starts with the number A 0 B 1 C 2 D 10
String index always starts with the number A. 0 B. 1 C. 2 D. 10 Which of the following functions converts lower case letters to upper case? A. tolower() B. toupper() C. strlower() D. Strupper() Which of the following functions checks a letter to be a space? A. strepace() B. strisspace() C. isspace() D. space() If one string is greater than the other string, then stremp() function returns A. -1 B. I C. 0 D. Error
Solution
1)option a--0(zero),string index always start with 0
2)B toupper(s1) takes s1 which is in lower case letters converts it into upper case letters
3)C ,isspace(c) here if c is a white space character it returns non zero value(like true) otherwise returns false
4)B strcmp(sl,s2) here 3 values possible if s1>s2 it returns 1,if s1<s2 it returns -1 ,equal then it returns zero value
