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 %lu in c?

0 Answers  


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

0 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


What is quick sort in c?

0 Answers  


write a program to interchange the value between two variable without using loop

1 Answers  


main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }

2 Answers  


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

0 Answers   HCL,


What is I ++ in c programming?

0 Answers  


There are 3 baskets of fruits with worng lables,one basket has apple,another basket has orange,another has combination of apple and orange,what is the least way of interchange the lables.

15 Answers   Cisco, Google, MBT,


how to build a exercise findig min number of e heap with list imlemented?

0 Answers  


Explain how can you tell whether a program was compiled using c versus c++?

0 Answers  


main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }

27 Answers   Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,


Categories