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 does exit() do?
What kind of sorting is this? SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
how to print this sereis 2 4 3 6 5..........?
What are the various topologies? Which one is the most secure?
Explain what math functions are available for integers? For floating point?
Why is this loop always executing once?
difference between semaphores and mutex?
What are c header files?
Why main function is special give two reasons?
wat is the meaning of c?
When is a void pointer used?