Write one statement equivalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));
RE: Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of ...
answer is A how could it be D. there is no need of printing at all. Y U behave foolish. plzzz don't misguide the new visitors its problem for our site..
RE: Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of the alternativesa.return(sqr(a));b.printf("sqr(a)");c.return(a*a*a);d.printf("%d",sqr(a));
RE: Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of the alternativesa.return(sqr(a));b.printf("sqr(a)");c.return(a*a*a);d.printf("%d",sqr(a));
option :a. i think 'd' is also correct. but it is not equivalent to above question.there is no need to go option d.
RE: Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of the alternativesa.return(sqr(a));b.printf("sqr(a)");c.return(a*a*a);d.printf("%d",sqr(a));
Yes the ans is: A Please see the question in that they give the two statements by using the two statements we can write one single statement so there is no need for going choice D.