Consider the following c++ code:
Char text[20];
Cin>>text;
Cout<<text;
If the input string is "computer programming", what will be the output? Justify your answer?
Answers
Answered by
2
Answer:
#include <conio.h>
#include <iostream.h>
#include <stdio.h>
#include <string.h>
class product {
int product_code, qty, price;
char name[20];
public:
product()
{
product_code = 0;
qty = 0;
price = 0;
name = NULL;
}
void entry()
{
cout << "\n Enter code, qty, price";
cin >> product_code >> qty >> price;
gets(name);
}
void tot_price() { return qty * price; }
};
void main()
{
p product;
p.entry();
cout << tot_price();
Answered by
3
Answer:
DO YOU WANT TO JOIN MY SCHOOL
Similar questions