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 |
Explain what are the advantages and disadvantages of a heap?
How to delete a node from linked list w/o using collectons?
Write a program of prime number using recursion.
to find the program of matrix multiplication using arrays
in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n
Explain about C function prototype?
What is nested structure in c?
20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????
How can I invoke another program or command and trap its output?
Write a program to find the smallest and largest element in a given array in c language
when to use : in c program?
Write a program to identify if a given binary tree is balanced or not.