Question: The following program invokes p() twice. What will be displayed from the last call of p(ch)? #include using namespace std; void p(char ch) {
The following program invokes p() twice. What will be displayed from the last call of p(ch)? #include using namespace std; void p(char ch) { } int n = 4; while (n > 0) { 1 } cout < < ch; n--: cout < < endl; int main() { char ch = 'a'; p(ch): p(ch); return 0;
Step by Step Solution
3.34 Rating (157 Votes )
There are 3 Steps involved in it
The image shows some C code defining a function p that takes a character as an argument and prints i... View full answer
Get step-by-step solutions from verified subject matter experts
