what is the difference between global variable & static
variable declared out side all the function in the file.
Answers were Sorted based on User's Feedback
Answer / vishnu
Both the variables are stored in data segment but difference
is in accessing the variable. Global variables can be
accessed though out the project (if multiple files exists)
whereas static variable accessed within the file where its
declared.
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / ashwinishaligram308
global variableis allocated on heap and static variables on
stack
| Is This Answer Correct ? | 2 Yes | 11 No |
Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.
Explain threaded binary trees?
what is ans for this scanf(%%d",c);
Did c have any year 2000 problems?
Find greatest of two numbers using macro
who is first prime minister in india??
What is the heap in c?
Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).
What is a const pointer?
What are valid operations on pointers?
What is the value of uninitialized variable in c?
IS STRUCTURES CAN BE USED WITHIN AN ARRAY?