Solved

Here Are Several Different Initializations of a Structure Variable

Question 23

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents