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 happens if a header file is included twice?

0 Answers  


Add Two Numbers Without Using the Addition Operator

0 Answers  


Determine the result of performing two successive block transfers into the same area of a frame buffer using the binary arith operations

0 Answers  


what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

9 Answers   HCL,


What is keyword with example?

0 Answers  






int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

4 Answers   TCS,


union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }

3 Answers  


What is identifier in c?

0 Answers  


void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?

4 Answers   Groupon,


Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered

1 Answers  


What does a function declared as pascal do differently?

0 Answers  


What is an auto keyword in c?

0 Answers  


Categories