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 |
what is the hardware model of CFG( context free grammar)
Tell us bitwise shift operators?
what is the little endian and big endian?
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
coding for Fibonacci.?
Why shouldn’t I start variable names with underscores?
find largest element in array w/o using sorting techniques.
What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.
what is the difference between. system call and library function?
Which are low level languages?
What are reserved words with a programming language?
what is meant by c