Solved

Here Are Several Different Initializations of a Structure Variable

Question 9

Essay

Here are several different initializations of a structure variable.State what happens in each initialization.
struct WeatherData
{
int temperature;
int windChill;
int windSpeed;
};
a)WeatherData prediction ={ };
b)WeatherData prediction ={40};
c)WeatherData prediction ={40,-10,};
d)x WeatherData prediction ={40,-10,20 };

Correct Answer:

verifed

Verified

a)All the structure members are set to 0...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions