Computer Science, asked by shreyasaxena0510, 5 months ago

Find out the errors, if any, in the following and rewrite the corrected

statements.

fuEufyf[kr esa ;fn dksbZ =qfV gS rks <w¡f<;s rFkk okD;ksa dks iqu% fyf[k;s &

(a) cout << "a=" , a (½)

(b) cin >> "\n" >>y (½)

(c) void main ( ) (





)

{

cout << " enter 2 numbers";

cin >> var >> auto ;

product = var * auto;

cout << " The product = " << product;

}

(d) #include <iostream.h> (





)

class train

{

long trainno;
char name [25];

public :

void entry ( )

{

cin >>trainno;

gets (name);

}

void display ( )

{

cout << trainno << " , " <<name>

}

};

void main ( )

{

train t ;

entry.t ( ) ;

display.t ( ) ;

}​

Answers

Answered by naveednew989
0

Answer:

I don't know if you have any questions please

Similar questions