Write a C++ program demonstrating that namespaces can be reopened and extended across different blocks or files.
Two space-separated integers A and B.
Print sum and product computed across separate namespace extension blocks.
-100 <= A, B <= 100
5 4
Sum: 9 Product: 20
Namespaces are open sets, allowing functions and variables to be added across multiple declaration blocks.
#include <iostream>
namespace SystemUtils {
int add(int a, int b) {
return a + b;
}
}
namespace SystemUtils {
int multiply(int a, int b) {
return a * b;
}
}
int main() {
int a, b;
if (std::cin >> a >> b) {
// Print sum and product using extended SystemUtils namespace
}
return 0;
}Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used