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 the datatype of rowid?
How to disable triggers using "disable trigger"?
What triggers long term care?
What are commonly used mssql functions in php?
How to use wildcard characters in like operations in ms sql server?
Explain differences between web edition and business edition?
Define compound operators?
What are the types of stored procedures in an sql server?
What is user-defined functions? What are the types of user-defined functions that can be created?
How many types of cursor type are there?
How many replicas are maintained for each sql azure db?
Do you think BCNF is better than 2NF & 3NF? Why?
Explain raiserror in sql server?
What is amo? : sql server analysis services, ssas
How do I view a trc file?