What is the difference between a local and a global variable?

Answer Posted / l.pandiyan

A global variable can be accessed by all functions. It is
initialized at the beginning of the program and is deleted
when the program shuts down. A local variable is isolated in
its function.

Is This Answer Correct ?    70 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How real and float literal values are rounded?

815


Explain what is cte (common table expression)?

813


Would you store your query in a ssrs report or a database server? State the reason why?

132


What is openrowset sql server?

747


How to execute a sql statement using mssql_query()?

713






How to execute the cursor queries with "open" statements?

833


How to Sync Two SQL Azure Databases?

111


Explain transaction server consistency?

686


Can the “if update (colname)” statement be used in a delete trigger?

746


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

731


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2386


I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

1650


How is foreign key related to primary key?

718


Explain different types of collation sensitivity?

701


How to generate random numbers with the rand() function in ms sql server?

758