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
How can you increase the size of a statically allocated array?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Is javascript based on c?
Simplify the program segment if X = B then C ← true else C ← false
What is identifiers in c with examples?
Why doesnt this code work?
What are the types of pointers?
Write a program to show the change in position of a cursor using c
What is the use of pragma in embedded c?
What is #ifdef ? What is its application?
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
Explain what are linked list?
What are structure members?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is unsigned int in c?