Answer Posted / rani
a memory allocation for the multiple blocks i.e array of
blocks and intialising the first block to zero.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the hardest programming language?
How do I get an accurate error status return from system on ms-dos?
What is sizeof return in c?
What is meant by high-order and low-order bytes?
What are the c keywords?
Explain what is the most efficient way to store flag values?
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 c preprocessor mean?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is a good way to implement complex numbers in c?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Can include files be nested?
What is the benefit of using an enum rather than a #define constant?
How macro execution is faster than function ?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }