What is the difference between a local and a global variable?
Answer Posted / rahul
Local Variables are declared within the function main.
main()
{
int a,b,c;(local variable declaration)
}
Global variables are declared outside the function main.
int FACT(int);
main()
{
Local variable declaration;
}
| Is This Answer Correct ? | 128 Yes | 16 No |
Post New Answer View All Answers
What is difference between table aliases and column aliases? Do they affect performance?
What are the restrictions that views have to follow? : SQL Server Architecture
Explain forward - only cursors?
Do you know the cursor optimization tips?
What are parameterized reports?
Can you move the resources after pausing the node? : sql server database administration
How to drop an existing table?
List out different types of normalizations in sql server and explain each of them?
How can I check if a view exists in a sql server database?
What are transactions in sql?
How are the exceptions handled in sql server programming?
What are the new features in sql server 2016?
what are the new features in SSRS?
what's the difference between delete table and truncate table commands? : Sql server database administration
What is provisioning, billing and metering, and connection routing concepts in the service layer?