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));
Answer Posted / 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 View All Answers
When do we get logical errors?
What is union in c?
Write a program to use switch statement.
Which is an example of a structural homology?
How do I get an accurate error status return from system on ms-dos?
If I have a char * variable pointing to the name of a function ..
Explain the Difference between the New and Malloc keyword.
What are the 4 types of unions?
What is a char c?
What is the difference between local variable and global variable in c?
write a program to concatenation the string using switch case?
Mention four important string handling functions in c languages .
Explain how can I convert a string to a number?
c program to compute AREA under integral
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.