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));
Answers were Sorted based on User's Feedback
Answer / saranya
both a and d is possible
a: which returns the value of sqr(a)
d:it prints the value of the sqr(a)
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
What are the different types of linkage exist in c?
how to find out the union of two character arrays?
How can you check to see whether a symbol is defined?
What is the basic structure of c?
What are the different flags in C? And how they are useful? And give example for each in different consequences?
Can a binary search tree be used as an index? If yes, how? Explain
Difference between Function to pointer and pointer to function
Can a program have multiple main() functions?
what different between c and c++
How do I use strcmp?
What the advantages of using Unions?
swapping of two numbers without using third variable using AND and OR operators