154k views
3 votes
You will write a flowchart and C code for a program that does the following:Call three functions from main(). The functions are named first(), second(), and third(). Each function prints out its name ("first," "second," "third."). After all three functions are called, the main() function should print "End of program."

1 Answer

1 vote

Answer:

#include <stdio.h>

void first() {

printf("first\\");

}

void second() {

printf("second\\");

}

void third() {

printf("third\\");

}

int main() {

first();

second();

third();

printf("End of program.\\");

return 0;

}