இந்த நிரலின் வெளியீடு என்ன?
#include
<iostream>
#include
<string.h>
using namespace std;
int main()
{
struct student
{
int n;
char name[10];
};
student s;
s.n = 123;
strcpy(s.name,
"Balu");
cout<<s.n<<endl;
cout<<s.name<<endl;
return 0; }
இந்த நிரலின் வெளியீடு என்னவாக இருக்கும்?
#include
<iostream>
using namespace std;
structShoeType
{
stringname;
double price;
};
int main()
{
ShoeTypeshoel, shoe2;
shoe1.name =
"Adidas";
shoe1.price = 9.99;
cout<<
shoe1.name<<"#"<< shoel.price<<endl;
shoe2 = shoel;
shoe2.price =
shoe2.price /9;
cout<<
shoe2.name<< "# "<< shoe2.price;
return 0;
}