I declared the 'GuGuDan' fn in the first place before main fn, but it showed the error message 'Implicit declaration of function 'GuGudan' is invalid in C99' and didn't work. so I tried to find another solution and figured it out it works if I declare it in 'WhatToPrint' fn.
#include <stdio.h>
void GuGuDan(int, int);
void WhatToPrint(int, int);
...
void WhatToPrint(int x, int y){
void GuGudan(int, int);
// why must I declare GuGuDan fn in WhatToPrint fn?
...
}