c question, what is the problem ?
#include <stdio.h> #include <conio.h> #include <string.h> #include <stdlib.h> struct personal { char name[100],family[100]; long int phone; }s[100]; void add(int n) { printf("enter a name:\n"); scanf("%s",s[n+1].name); printf("enter a family:\n"); scanf("%s",s[n+1].family); printf("enter a phone number:\n"); scanf("%d",&s[n+1].phone); printf("mission accomplished."); } void editname(int n) { long int phone1; int i; char name1[100],family1[100]; printf("enter the phone number:\n"); scanf("%ld",&phone1); for(i=0;i<n;i++) { if(phone1==s[i].phone) { printf("enter a new name:\n"); scanf("%s",name1); strcpy(s[i].name,name1); printf("enter a new family:\n"); scanf("%s",family1); strcpy(s[i].family,family1); } } } void shownum(char name2[],char family2[],int n) { int i,a=0; for(i=0;i<n;i++) { if(strcmp(name2,s[i].name)==0&&strcmp(family2,s[i].family)==0) a=1; } if(a==1) printf("phone:%ld",&s[i].phone); el