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 advantages & disadvantages of unions?
A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A
read a number & print all its devisors using c-program?
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
What are static functions?
What are keywords in c with examples?
write a program to display all prime numbers
How do you list a file’s date and time?
What is main void in c?
What are header files why are they important?
Why do we need arrays in c?
what is data structure.in linear and non linear data structures which one is better?Explain