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
Tell me when would you use a pointer to a function?
What is the difference between #include and #include 'file' ?
simple program of graphics and their output display
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What library is sizeof in c?
Can we access array using pointer in c language?
What the different types of arrays in c?
Can variables be declared anywhere in c?
How can I determine whether a machines byte order is big-endian or little-endian?
#include
What is a static variable in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What are data structures in c and how to use them?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
any "C" function by default returns an a) int value b) float value c) char value d) a & b