"Of course he will."
Translation:Wrth gwrs bydd.
It isn't possible, as you suggest, without context.
I've just replaced that sentence with:-
Fydd e'n nofio yfory? Bydd wrth gwrs. (Will he be swimming tomorrow? Yes (he will) of course.)
Thanks for your comment and drawing our attention to this error.