What is the difference between a local and a global variable?
Answer Posted / jaccessdenied
int a;//global variable
class VariablesDemo
{
int b;//class variable
void add()
{
int c,d;//c,d,e are local variables that are used within the function add
int e=c+d;
}
}
| Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
What does sql server mean?
What is the federation in sql azure?
How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?
When I delete any data from a table, does the sql server reduce the size of that table?
How to use column default values in insert statements in ms sql server?
What is the default sql server instance name?
How to locate and take substrings with charindex() and substring() functions?
What is the need for indexing?
1 01 101 01010
Is sql server difficult to learn?
What is user-defined inline table-valued function?
What are the elements of dbms?
How to delete duplicate rows from table except one?
Explain nested stored procedure. Syntax and an example for create nested stored procedure?