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


Please Help Members By Posting Answers For Below Questions

When do we get logical errors?

818


What is union in c?

841


Write a program to use switch statement.

879


Which is an example of a structural homology?

1043


How do I get an accurate error status return from system on ms-dos?

864


If I have a char * variable pointing to the name of a function ..

899


Explain the Difference between the New and Malloc keyword.

875


What are the 4 types of unions?

785


What is a char c?

796


What is the difference between local variable and global variable in c?

914


write a program to concatenation the string using switch case?

1794


Mention four important string handling functions in c languages .

840


Explain how can I convert a string to a number?

837


c program to compute AREA under integral

2074


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.

1828