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 |
Define Array of pointers.
how do you redirect stdout value from a program to a file?
what does ‘#include’ mean?
Why c is called a mid level programming language?
suppose there are five integers write a program to find larger among them without using if- else
what r the cpu registers r ther?
What is hashing in c?
program to get the remainder and quotant of given two numbers with out using % and / operators?
10 Answers College School Exams Tests, IBM,
What is a pointer in c plus plus?
i want to know the procedure of qualcomm for getting a job through offcampus
write a program in c language for the multiplication of two matrices using pointers?
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?