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
Indexes are updated automatically is the full-text index also updated automatically?
Find first and last day of current month in sql server
Explain the stored procedure?
What happens if the update subquery returns no rows in ms sql server?
What is the security principal at the server level that represents your session?
Explain some stored procedure creating best practices or guidelines?
Can sql servers linked to other servers like oracle?
Can we add our custom code in ssis?
What is a Join and explain its types?
What is open database communication (odbc)?
Can you index views?
do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
What is the correct order of the logical query processing phases?
What the difference between UNION and UNIONALL?
What happens if null values are involved in boolean operations?