Consider the following code segment. What will be the output of following code? Int addValue (int *a){ int b = (*a) + 2; return b ; } main () { int x =6 ; cout

🎲 Try a Random Question  |  Total Questions in Quiz: 252  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Introduction To Programming Practice Test Questions — practice the complete quiz, review flashcards, or try a random question.


Consider the following code segment. What will be the output of following code? Int addValue (int *a){ int b = (*a) + 2; return b ; } main () { int x =6 ; cout << x << “,” ; cout << addValue(&x) << “,” ; cout << x ; }