c – Is it possible to exchange programs displayed in stdout?

I would like to write a program in C that forks then execs three different processes.

Then two of the programs will be suspended and only one of the three will be broadcast to the public. stdout. It is possible to later suspend the running process on stdout, resume one of the other suspended processes and display it on stdout instead of?