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 |
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER
who did come first hen or agg
what is the use of getch() function in C program.. difference b/w getch() and getche()??
29 Answers HCL, IBM, Infosys, TCS, Wipro,
where does it flourished?
main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }
2 Answers Vector, Vector India,
what is function pointer?
How to establish connection with oracle database software from c language?
write a program to display numbers from 1 to 10 and 10 to 1?
Is c pass by value or reference?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
printf("%d",(printf("Hello")); What it returns?
Explain 'bit masking'?