In the context of scanf - When you put a '*' after the %, it will read the input and do nothing with it
i.e.
scanf("%d%*c", &choice);
%d - This would read the first input part as a...
Type: Posts; User: Click_here
In the context of scanf - When you put a '*' after the %, it will read the input and do nothing with it
i.e.
scanf("%d%*c", &choice);
%d - This would read the first input part as a...
scanf("so you wan to be... %d \n", &choice);
should be more like
puts("so you wan to be...");
scanf("%d%*c", &choice); // (%*c for when the user hits enter)