Write one statement equalent 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));

Answer Posted / pradeep kumar.s

My Option Is d


since the printf statement is capable of having two
functionalities
1, display the message in output screen
2, calls the function and return the answer here.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #line in c?

554


How do you construct an increment statement or decrement statement in C?

732


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

635


Why is structure padding done in c?

637


What is sizeof int in c?

592






How can I write a function that takes a format string and a variable number of arguments?

598


the question is that what you have been doing all these periods (one year gap)

1612


What is character constants?

706


What type is sizeof?

574


When would you use a pointer to a function?

580


What are the types of unary operators?

653


Why do we need a structure?

580


What is a const pointer?

624


How to draw the flowchart for structure programs?

8756


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

800