#include #include #include int idx =0; typedef struct telInfo{ char name[10]; char tel[10]; } telInfo; void insertInfo(telInfo * arr){ puts("[ INSERT ]"); printf("Input Name: "); scanf("%s",arr[idx].name); printf("Input Tel Number: "); scanf("%s",arr[idx].tel); printf("%30s\n\n","Data Inserted"); idx++; arr = (telInfo*)realloc(arr,sizeof(telInfo)*(idx+1)); strcpy(arr[idx].name,""); strcpy(arr[idx].tel,""); } void delInfo(telInfo * arr){ char name[10]; int i=0,j=0,k=0; puts("[ DELETE ]"); if (idx==0){ puts("[ No Data ]\n"); return; } printf("Input name: "); scanf("%s",name); for(i=0;i