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 is pointer and structure in c?
what is the importance of spanning tree?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
0 Answers Lovely Professional University,
is c language is a object oreinted language?
What is the c language function prototype?
What is the use of gets and puts?
What is 02d in c?
A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.
why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }
What is self-referential structure in c programming?
How can we open a file in Binary mode and Text mode?what is the difference?
Can a variable be both static and volatile in c?