1.6) Enter the code
void Hello()
{
printf("Hello world\n");
}
int main(int argc, char *argv[])
{
Hello();
system("pause");
return 0;
}
Add the output of this program to your logbook
• You should be able to appreciate that functions can be used to prevent code duplication. Write a short reflective account of the code concentrating on its functionality and comparing the outputs against the source code.
It'll print:
Hello world
Comments
Leave a comment