Explain a file operation in C with an example.
No Answer is Posted For this Question
Be the First to Post Answer
Why is #define used?
1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.
Is there any demerits of using pointer?
what is a constant pointer in C
What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,i++); }
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
what is c language.
3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What does %d do in c?
What is structure data type 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.