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 %lu in c?
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.
what is a function pointer and how all to declare ,define and implement it ???
What is quick sort in c?
write a program to interchange the value between two variable without using loop
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }
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?
What is I ++ in c programming?
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?
Explain how can you tell whether a program was compiled using c versus c++?
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,