Question: HELP!!! Written in C #include #include int main (int argc, char *argv[]) { char* str = argv[1]; char* str2 = argv[2]; const char ch =
HELP!!! Written in C #include
#include
int main (int argc, char *argv[]) { char* str = argv[1];
char* str2 = argv[2];
const char ch = '5';
char *p;
p = strchr(str, ch);
printf("%s", p); p = strrchr(str, ch);
printf("%s", p); int n = strspn(str, str2);
n += strcspn(str, str2);
n += strnlen(str, 2);
printf("%i", n); return 0;
}
Given the code above, what's the output if we run the program prog with the commend "./prog 5353 5"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
