Modify program by saving the function, the define and the macro you wrote in a header file. Run the program using the same or similar main function.
Code:
#include<stdio.h>
#include<conio.h>
#define name "Alex Willimson"
#define address "40 tuxedo court"
#define student "324-787-647"
#define prggrade "78.82"
#define prgmark "B+"
void fun (void);
main()
{
fun();
getch();
}
void fun(void)
{
printf("NAME: %s",name);
printf("\n\nADDRESS: %s", address);
printf("\n\nSTUDENTNUMBER: %s" , student);
printf("\n\nPRG155 Grade %%: %s",prggrade);
printf("\n\nPRGMARK: %s",prgmark);
return(0);
getchar();
}