The only thing that's actually wrong with your code is how you put an ampersand before an array in your scanf() calls, here:
Code:
scanf("%s",&inName);
and here:
Code:
scanf("%s",inEmail);
Then of course, there's the usual argument that neither gets nor scanf when used like this can tell when the end of the arrays are, so it's possible to overrun the buffers. You can fix that by using fgets and specifying a field width:
Code:
#include <stdio.h>
int main(void)
{
char inEmail[500];
char inName[500];
char inMessage[150];
char exitKey;
printf("Enter a greeting message: ");
fgets(inMessage, sizeof inMessage, stdin);
printf("Enter a name please: ");
scanf("%499s",inName);
printf("Enter your email address: ");
scanf("%499s",inEmail);
printf("%s\n",inMessage);
printf("Your name is %s\n",inName);
printf("Your email address is %s\n",inEmail);
printf("Press return to exit program:");
scanf("%c",&exitKey);
getchar();
return 0;
}
It's also a good idea to test input for success. Anything that comes from outside of your program should be viciously validated.