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
What is #line in c?
How do you construct an increment statement or decrement statement in C?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Why is structure padding done in c?
What is sizeof int in c?
How can I write a function that takes a format string and a variable number of arguments?
the question is that what you have been doing all these periods (one year gap)
What is character constants?
What type is sizeof?
When would you use a pointer to a function?
What are the types of unary operators?
Why do we need a structure?
What is a const pointer?
How to draw the flowchart for structure programs?
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