|
-
May 25th, 2010, 11:37 AM
#1
output produced by function call
For the following function can one of you guys take a look and see if what I have at the bottom is correct..
void f(char ch)
{
if (('A' <= ch) && (ch <= 'H'))
{
f(ch - 1);
cout << ch;
}
else
cout << endl;
}
Determine the output that will be produced by the following function calls
f('C')
I think it is B
f('G')
I think it is F
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|