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 use values from other tables in update statements in ms sql server?
How dts is used to extract, transform and consolidate data?
What is policy management?
explain databases and sql server databases architecture? : Sql server database administration
What does REVERT do in SQL Server 2005?
Explain what is scheduled job and how to create it?
What is the command dbcc checkdb used for?
What is de-normalization in sql database administration? Give examples?
What causes index fragmentation?
What is the difference between stored procedure and user defined functions?
what authentication modes does sql server support? : Sql server database administration
What protocol does sql server use?
How to drop existing views from a database in ms sql server?
Indexes are updated automatically is the full-text index also updated automatically?
What does the not null constraint do?