Edit this:search by name
.

i was creating a program to get a member details by searching his name but
i'm stuck at if condition.Pls help me by giving simple logic how to do it.

Thank you

My Program:

#include<stdio.h>

struct member
{
        
char name[20];
        
int mobileno;
        
int balance;
}

main()

{
       
 struct member m[100];
        
int i,n,choice;
        
FILE *file;
        
file=fopen("Member.dat","w+");
        
printf("Enter number of members : \n");
        
scanf("%d\n",&n);
       
 for (i=0;i<n;i++)
        
{
                
printf("Enter member name : \n");
                
scanf("%s\n",m[i].name);
               
 printf("Enter member mobile no : \n");
               
 scanf("%d\n",m[i].mobileno);
               
 printf("Enter member balance : \n");
                
scanf("%d\n",m[i].balance);
                
fprintf(file,"%s \t %d\t %d",m[i].name,m[i].mobileno,m[i].balance);
        
}
       
printf("Enter member name for datails : \n");
        
scanf("%s\n",m[i].name);
        
if (m[i].name == m[

Edit this:search by name
===

.

i was creating a program to get a member details by searching his name but
i'm stuck at if condition.Pls help me by giving simple logic how to do it.

Thank you

My Program:

#include<stdio.h>

struct member
{
        
char name[20];
        
int mobileno;
        
int balance;
}

main()

{
       
 struct member m[100];
        
int i,n,choice;
        
FILE *file;
        
file=fopen("Member.dat","w+");
        
printf("Enter number of members : \n");
        
scanf("%d\n",&n);
       
 for (i=0;i<n;i++)
        
{
                
printf("Enter member name : \n");
                
scanf("%s\n",m[i].name);
               
 printf("Enter member mobile no : \n");
               
 scanf("%d\n",m[i].mobileno);
               
 printf("Enter member balance : \n");
                
scanf("%d\n",m[i].balance);
                
fprintf(file,"%s \t %d\t %d",m[i].name,m[i].mobileno,m[i].balance);
        
}
       
printf("Enter member name for datails : \n");
        
scanf("%s\n",m[i].name);
        
if (m[i].name == m[
