Computer Science, asked by Boomigaraghu, 8 months ago

Read the following C++ code and answer the questions given below:
#include<iomanip>
#include<iostream>
using namespace std;
class product
int code, quantity;
float price;
public:
void assigndata();
void print();
int main()
product p1, p2;
cout<<"\n Memory allocation for object p1"<<sizeof(p1);
cout<<"\n Memory allocation for object p2"<<sizeof(p2);
return 0;
(i) What is name of the class in the above program?
(i) What are the data members of the class ?
(iii) What is the memory size of the objects p1, p2?​

Answers

Answered by bhavanilogsha
2

Answer:

hello............ bro............

Similar questions