What
will be the output of this program?
#include <iostream>
using namespace std;
struct ShoeType
{
string name;
double price;
};
int main()
{
ShoeType shoe1, shoe2;
shoe1.name = "Adidas";
shoe1.price = 9.99;
cout<< shoe1.name<<
" # "<< shoe1.price<<endl;
shoe2 = shoe1;
shoe2.price = shoe2.price / 9;
cout<< shoe2.name<<
" # "<< shoe2.price;
return 0;
A
structure declaration is given below.
struct employee
{
int empno;
char ename[10];
}e[5];
Using
above declaration which of the following statement is correct.