C Programming :: Strings
-
Which of the following statements are correct about the program below?
#include int main() { char str[20], *s; printf("Enter a string\n"); scanf("%s", str); s=str; while(*s != '\0') { if(*s >= 97 && *s 122) *s = *s-32; s++; } printf("%s",str); return 0; } -
Which of the following function sets first n characters of a string to a given character?
-
How will you print \n on the screen?
-
The library function used to find the last occurrence of a character in a string is
-
Which of the following function is used to find the first occurrence of a given string in another string?
-
Which of the following function is more appropriate for reading in a multi-word string?
-
Which of the following function is correct that finds the length of a string?
A.
|
B.
|
C.
|
D.
|

Whatsapp
Facebook