ExamVeda
Login
Home
31
The data elements in the structure are also known as what?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
32
Which of the following is a properly defined structure?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
33
What will happen when the structure is declared?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
34
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    struct ShoeType 
    {
       string style;
       double price;
    };
     ShoeType shoe1, shoe2;
     shoe1.style = "Adidas";
     shoe1.price = 9.99;
     cout << shoe1.style << " $ "<< shoe1.price;
     shoe2 = shoe1;
     shoe2.price = shoe2.price / 9;
     cout << shoe2.style << " $ "<< shoe2.price;
     return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
35
Which of the following accesses a variable in structure *b?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board