L Lò Ngọc New member Sep 21, 2021 #1 What will be the output of the following C++ code? Code: #include <iostream> using namespace std; int main() { typedef int num; num a = 10, b = 15; num c = a + b + a - b; cout << c; return 0; } A. 20 B. 15 C. 30 D. 25
What will be the output of the following C++ code? Code: #include <iostream> using namespace std; int main() { typedef int num; num a = 10, b = 15; num c = a + b + a - b; cout << c; return 0; } A. 20 B. 15 C. 30 D. 25
V Võ Kiều Member Sep 21, 2021 #2 Answer: a Explanation: In this program, we are manipulating the numbers and printing the result using user-defined data types. Output: Code: $ g++ user.cpp $ a.out 20 Upvote 0 Downvote
Answer: a Explanation: In this program, we are manipulating the numbers and printing the result using user-defined data types. Output: Code: $ g++ user.cpp $ a.out 20