what is the output?
#define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t)
float gfloat;
main()
{
float a=1.12,b=3.14;
fun (a,b,float);
printf("na=%4.2f,b=%4.2f",a,b);
}
A)Error in Defining Macro
B)a=1.12,b=3.14
C)a=3.14,b=1.12
D)None of the Above
Answer Posted / deepa
option c
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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.
Write a program of advanced Fibonacci series.
Should a function contain a return statement if it does not return a value?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain what standard functions are available to manipulate strings?
What is a structure in c language. how to initialise a structure in c?
Where are c variables stored in memory?
why wipro wase
What is dynamic dispatch in c++?
What does stand for?
What happens if you free a pointer twice?
Explain how can you tell whether a program was compiled using c versus c++?
What is the condition that is applied with ?: Operator?
What are external variables in c?
Explain how can type-insensitive macros be created?