Answer Posted / ankitecian
int StrCmp(const char *_input1, const char *_input2)
{
int _cntr1 = 0;
int _flg = 0;
while(*(_input1 + _cntr1) != NULL || *(_input2 + _cntr1) !
= NULL)
{
if(*(_input1 + _cntr1) != *(_input2 + _cntr1))
{
_flg = -1;
}
_cntr1++;
}
return _flg;
}
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
which is conditional construct a) if statement b) switch statement c) while/for d) goto
How can I change the size of the dynamically allocated array?
What is nested structure with example?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Is c programming hard?
Differentiate between new and malloc(), delete and free() ?
What is a pragma?
Are pointers integers in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Why does everyone say not to use gets?
What are inbuilt functions in c?
What are void pointers in c?
Explain the difference between malloc() and calloc() in c?
What is static memory allocation? Explain
number of times a digit is present in a number