Write a C++ program using a lambda with reference capture (`[&]`) to modify an external variable in-place.
Initial balance and deposit amount.
Print updated balance.
Balances >= 0
1000.0 250.5
1250.50
Reference capture allows lambdas to modify outer scope variables directly.
#include <iostream>
#include <iomanip>
int main() {
double balance, depositAmt;
if (std::cin >> balance >> depositAmt) {
// Write your reference capture lambda logic here
}
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