Question: Write a program in C called email.c that accepts an email address from stdin and then checks whether the entered email address is in the
Write a program in C called email.c that accepts an email address from stdin and then checks whether the entered email address is in the correct format see below If it is not in the correct format then your program should print an error message informing the user of the correct format. If it is in the correct format, then your program should print it back out in full to the screen and exit.
Correct email format: A valid email address consists of five parts: one or more characters only letters or numbers followed by the at symbol @ followed by one or more characters only letters or numbers followed by the perioddot symbol followed by one or more characters only letters or numbers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
