Write a program to compare two strings without using the
strcmp() function
Answers were Sorted based on User's Feedback
Answer / sriramaraju
#include<stdio.h>
main()
{
//please read two strings int str1 and str2//
while(str1[i]!='/0' &&str2[i]!='/0')
if(str1[i]!=str2[i])
flag=1;
if(flag==1)
printf("equal");
}
Is This Answer Correct ? | 127 Yes | 216 No |
wap in c to accept a number display the total count of digit
if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')
What is #error and use of it?
What's the best way of making my program efficient?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
Why static variable is used in c?
Write a program to find minimum between three no.s whithout using comparison operator.
What is difference between Structure and Unions?
who is the editor of 'pokemon'?
can we print any string without using terminator?
Which is the memory area not included in C program? give the reason
char ch="{'H','I',0};printf("%s",ch);what is output