What is meant by global static? why we have to use static
variable instead of Global variable
Answer Posted / guest
Static is protected one and you cannot acess the variable
in other files/functions.It is declared in the top of the
file/function.The value retains tho,t the program.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Is using exit() the same as using return?
Is c# a good language?
Explain what is the difference between far and near ?
find out largest elemant of diagonalmatrix
Why can arithmetic operations not be performed on void pointers?
how to make a scientific calculater ?
What is pointer to pointer in c?
Do you know what are the properties of union in c?
Should I learn c before c++?
What are Macros? What are its advantages and disadvantages?
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.
Tell us two differences between new () and malloc ()?
Is a pointer a kind of array?
write a proram to reverse the string using switch case?