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:

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
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q4: The dot operator is used between an
Q5: Carefully distinguish between the scope resolution operator,and
Q6: A class is a type similar to
Q7: Given the ShoeType structure type-definition.Write a function
Q8: A sure test of whether you have
Q10: In defining a member function whose declaration
Q11: A structure member is access using the
Q12: A C++ structure,or struct,like the C++ array,is
Q13: Carefully define mutator and accessor functions of
Q14: What is the error in the following