Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 Which of the following statements are correct about the program below? #include<stdio.h> 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++; } ?->(Show Answer!)
1. Which of the following statements are correct about the program below? #include<stdio.h> 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; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
This program converts the given string to upper case string. Output: Enter a string: indiabix INDIABIX