We just learned briefly about functions today and have a list of programs to write, but I am stuck with this particular problem:
Write a function void myInfo( ) that prints your name and email address on two lines, both indented.
I have been writing basic functions with int, but I have really no idea how to incorporate this into my program. The assigned chapter to read doesn't mention anything about using void anywhere so I'm not sure what to do. My teacher sucks and has never taught this before so I have been basically teaching myself the entire semester. This is what I have written, but I know it is garbage.
char string ;
printf("My name and email address are as follows:\n");
printf("\t%s\n\t%s\n", myInfo(char string);
void myInfo(char string)
char string = "Jason";