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 full outer join in sql server joins?
Explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
How to provide column names in insert statements in ms sql server?
How do you debug a procedure in sql server?
Mention the 3 ways to get a count of the number of records in a table.
What is user defined datatypes and when you should go for them?
Why olap is used?
do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
How many tables can be joined in SQL Server?
How to add an address record into adventureworkslt?
What is difference between foreign key and unique key?
What is table join?
What is the difference between a check constraint and a rule?
You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?
What is the full form of ddl?