Answer Posted / guest
Dennis Ritchi Of Bell Laboratories
Is This Answer Correct ? | 27 Yes | 1 No |
Post New Answer View All Answers
Multiply an Integer Number by 2 Without Using Multiplication Operator
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
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.
What is the collection of communication lines and routers called?
What are 3 types of structures?
What is hash table in c?
What is meant by preprocessor in c?
What is volatile keyword in c?
Can include files be nested?
What is pointer to pointer in c language?
What are the disadvantages of external storage class?
How is a pointer variable declared?
Process by which one bit pattern in to another by bit wise operation is?
What does & mean in scanf?
write a program to print data of 5 five students with structures?