C passes By value or By reference?
Answer Posted / red dustbin
C passes only by value. When passing a pointer, the pointer
is passed by value. This is equivalent to passing by
reference but it is the progammer's choice to pass the
pointer instead of the object itself.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Why is a semicolon (;) put at the end of every program statement?
How will you delete a node in DLL?
what is a function method?give example?
What is a void pointer in c?
How can I change the size of the dynamically allocated array?
Can variables be declared anywhere in c?
Do you know what are the properties of union in c?
How can I make it pause before closing the program output window?
What is string length in c?
write a program to find the given number is prime or not
Explain what is the use of a semicolon (;) at the end of every program statement?
What is keyword with example?
Is null a keyword in c?
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.