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.
No Answer is Posted For this Question
Be the First to Post Answer
what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
What does stand for?
What is the concatenation operator?
Explain two-dimensional array.
How many bytes are occupied by near, far and huge pointers (dos)?
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
How many loops are there in c?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Write a c program to demonstrate Type casting in c?
What is void c?
#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(ā%dā ,a[i]); }