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
Is null vs coalesce?
role of sql sever 2005 in database rather than any other database
How you would rewrite the sql query to return the customerid sorted numerically?
How do I start and stop sql server?
what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
Why do you need a sql server?
Where the sql logs gets stored? : sql server database administration
List out a number of the wants to setup a SQL Server failover cluster?
Issues related in upgrading SQL Server 2000 to 2005 / 2008
Explain about nested stored procedure?
Explain hostprotectionattribute in sql server 2005?
Explain the benefits of user-defined functions?
How many servers can we create in a single subscription?
what is a transaction? : Sql server database administration
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?