64/square(4)
Answer / sorab
#define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64
| Is This Answer Correct ? | 9 Yes | 0 No |
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's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
Do you know the difference between malloc() and calloc() function?
from which concept of 'c', the static member function of 'c++' has came?
please give me some tips for the selection in TCS.
What is the difference between typeof(foo) and myFoo.GetType()?
program to locate string with in a string with using strstr function
write a string copy function routine?
why we need function pointers?
Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?
What is the exact difference between '\0' and ""
What is the mean of this statement:: if(int i=0 * i=9)