+ 1
#include <iostream> using namespace std; int main() { int x = 5, y = 6, z = 50, sum; cout << sum; sum= x + y + z;
sum output is 37 how😫😫
2 Respuestas
+ 4
When declaring variables, always initialize them to avoid any errors.
+ 2
You are printing the sum before calculating it. sum is not initialized, so I think it is a garbage value.