[Solved] Complete noob :Error3error C4700: uninitialized local variable radius used [closed]

[ad_1]

You never assigned a variable to area and radius

You’re using the radius variable to calculate the area but radius doesn’t have a value; it was never initialized.

Simply typing

double radius = 0.0;

would fix it. It is good practice to set (initialize) your variables to something when you declare them.

2

[ad_2]

solved Complete noob :Error3error C4700: uninitialized local variable radius used [closed]