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



Write one statement equalent to the following two statements x=sqr(a); return(x); Choose fr..

Answer / priyanka nigam

return(sqr(a)); is the ans

Is This Answer Correct ?    21 Yes 0 No

Write one statement equalent to the following two statements x=sqr(a); return(x); Choose fr..

Answer / fazlur rahaman naik

a will b the answer.

Is This Answer Correct ?    17 Yes 0 No

Write one statement equalent to the following two statements x=sqr(a); return(x); Choose fr..

Answer / shruti

i think both a and d will work..

Is This Answer Correct ?    6 Yes 1 No

Write one statement equalent to the following two statements x=sqr(a); return(x); Choose fr..

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

Write one statement equalent to the following two statements x=sqr(a); return(x); Choose fr..

Answer / anjana jayaraj

only answer d is correct

Is This Answer Correct ?    0 Yes 0 No

Write one statement equalent to the following two statements x=sqr(a); return(x); Choose fr..

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

Post New Answer

More C Interview Questions

What is pointer and structure in c?

0 Answers  


what is the importance of spanning tree?

0 Answers  


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?

5 Answers   TCS,


What is the c language function prototype?

0 Answers  






What is the use of gets and puts?

0 Answers  


What is 02d in c?

0 Answers  


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.

4 Answers  


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 "); }

0 Answers  


What is self-referential structure in c programming?

0 Answers  


How can we open a file in Binary mode and Text mode?what is the difference?

1 Answers   PanTerra,


Can a variable be both static and volatile in c?

0 Answers  


Categories