expand icon
book ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff cover

ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff

النسخة 2الرقم المعياري الدولي: 978-0131409095
book ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff cover

ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff

النسخة 2الرقم المعياري الدولي: 978-0131409095
تمرين 2
Exercises 1-6 assume ASCII representation of characters and the following function f():
? void f(char ch) { if (('A' = ch) (ch = 'H')) { f(ch ? 1); cout ch; } else cout endl; }
Tell what output will be produced by the function call.
f('G')
التوضيح
موثّق
like image
like image

Analyzing the given program:
The functi...

close menu
ADTs, Data Structures, and Problem Solving with C++ 2nd Edition by Larry Nyhoff
cross icon