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

Answer Posted / rattana

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

Is This Answer Correct ?    31 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does hive support indexing?

713


What is the difference between delete and truncate statements?

746


What is pessimistic concurrency?

707


Explain try...catch with sql server?

757


How to stop log file growing too big?

747






Do you know what is normalization of database? What are its benefits?

732


What are the difficulties faced in cube development? : sql server analysis services, ssas

796


explain extended properties

710


Why the trigger fires multiple times in single login?

881


What is difference between unique and primary key?

649


How to use copy and concatenate commands in SQL?

776


Do you know how to implement service broker?

688


Explain the stored procedure?

810


What is database white box testing?

840


What is role playing dimension with two examples? : sql server analysis services, ssas

775