N Ngọc Trâm New member Sep 18, 2021 #1 What will be the output of the following C++ code? Code: #include <iostream> using namespace std; #define PR(id) cout << "The value of " #id " is "<<id int main() { int i = 10; PR(i); return 0; } A. 10 B. 15 C. 20 D. 12
What will be the output of the following C++ code? Code: #include <iostream> using namespace std; #define PR(id) cout << "The value of " #id " is "<<id int main() { int i = 10; PR(i); return 0; } A. 10 B. 15 C. 20 D. 12
Đ Đom' Đóm Nhỏ' New member Sep 18, 2021 #2 Answer: a Explanation: In this program, we are just printing the declared values. Output: Code: $ g++ mac.cpp $ a.out 10 Upvote 0 Downvote
Answer: a Explanation: In this program, we are just printing the declared values. Output: Code: $ g++ mac.cpp $ a.out 10