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
What is operator promotion?
What does. int *x[](); means ?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What are the application of c?
What is the value of uninitialized variable in c?
Is python a c language?
What are the different types of endless loops?
Which is better oop or procedural?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
Explain how can I convert a number to a string?
How does free() know explain how much memory to release?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is a macro, and explain how do you use it?
Which is the memory area not included in C program? give the reason