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
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q18: If,in a class,one uses the keyword public:,it
Q19: A class is a type similar to
Q20: A C++ structure,or struct,like the C++ array,is
Q21: What is the reason for separating the
Q22: The scope resolution operator can be used
Q24: What is the error in the following
Q25: In the structure definition
struct StudentRecord
{
int studentID;
char grade;
}
give
Q26: C++ allows the programmer to deal with
Q27: The dot operator is used between an
Q28: Given the ShoeType structure type-definition.Write a function
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents