Your code does not make any sense. There are many problems with what you have written
I’m not going to go through them all, but the most glaring is
if (option == 1) {
void addcontact(info contactlist[]);
}
This is not how a function is called. Instead, it should look like
if (option == 1)
{
addcontact(x);
}
where X is an “info” type of object, which you don’t have defined.
I’d strongly suggest finding some basic programming tutorials to get a better familiarity with what you are doing.
1
solved Phone book project error.There are no errors found in compiler but it exits when it runs have been trying for very long [closed]