Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 #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; } /*}}}*/

image text in transcribed

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 stringstring2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Use brochures actively.

Answered: 1 week ago

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago