passing unions to functions

Can we pass unions to function? if yes then what's the syntax with an example.
Yes. Union has typename just like a class. Pass with same syntax.
Topic archived. No new replies allowed.