function calling

hey guys just wanted to know that if i have two functions other than main in my code....can i choose which function out of the two when a specific condition is met to call when i need it......thanx in advance

1
2
3
4
if( condition )
   foo();
else
   bar();
thanx
Topic archived. No new replies allowed.