what is the difference between global variable & static
variable declared out side all the function in the file.
Answer Posted / ashwinishaligram308
global variableis allocated on heap and static variables on
stack
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What are different types of pointers?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What happens if a header file is included twice?
explain how do you use macro?
How can I open a file so that other programs can update it at the same time?
What is the size of empty structure in c?
Define the scope of static variables.
What is the difference between c and python?
Can i use “int” data type to store the value 32768? Why?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is array of pointers to string?
How does normalization of huge pointer works?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What are reserved words with a programming language?