Question
C code can't get right ans. #include #include // remove non alphbet characters void strPK(char* src, char* dst)/*{{{*/ { int index = 0; for (int
C code
can't get right ans.
#include
// remove non alphbet characters void strPK(char* src, char* dst)/*{{{*/ { int index = 0; for (int i = 0; ; ++i) { if (src[i] == '\0') break; if (!((src[i] >= 'A' && src[i] = 'a' && src[i] temp2[i]) return 1; else if (temp1[i]
int main()/*{{{*/ { char str1[100]; char str2[100]; printf("first string : "); fgets(str1, 100, stdin);
printf("second string : "); fgets(str2, 100, stdin);
int result = strCmpPk(str1, str2); if (result) printf("string1 > string2 "); else if (result == -1) printf("string1
return 0; } /*}}}*/
gr3201500520cspro: /temp ./a. out first string cpro!!!gramming!! second string cprogramming stringlstring2 gr 320150052@cspro: /temp$ ./a.out first string abcde second string : aacde string string2 gr 3201500520cspro: /temp$ ./a.out first string!!abcd second string abcd stringstring2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started