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
Do you know what are bitwise shift operators in c programming?
How can I swap two values without using a temporary?
can we implement multi-threads in c.
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What are reserved words with a programming language?
Is null equal to 0 in sql?
What are pointers?
Can you define which header file to include at compile time?
simple program of graphics and their output display
What is FIFO?
Explain why c is faster than c++?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
show how link list can be used to repersent the following polynomial i) 5x+2
What is double pointer in c?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }