Create a template base class `Base` with a public attribute `T data`. Create a standard (non-template) derived class `DerivedInt` that inherits specifically from `Base`. Read an integer, set `data` using a `DerivedInt` object, and print ‘Data: [data]’.
A single integer.
Print the formatted data.
None
99
Data: 99
When inheriting from a class template, the derived class must specify the exact data type to fulfill the base class's template requirement.
#include <iostream>
// Write Base<T> template
// Write DerivedInt inheriting Base<int>
int main() {
// Read input, instantiate DerivedInt, set data, and print
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