Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
The following piece of code works alright but it looks ugly.
The following piece of code works alright but it looks ugly. Can a better method be suggested to implement it. The problem is passing a structure as a parameter to a function and from it to another function. Don't burn me for the choice of function names.:)#include#include
// struct addbook again; this line also works if main is shown as void
void check(struct addbook again);
void show(struct addbook again);
main(struct addbook again)
void check(struct addbook again)
printf("Enter the name.... ");
printf("Enter the address.... ");
void show(struct addbook again)
The name is .... %s", again.name);
The address is ... %s, again.add);