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
What is federation member?
What is the maximum size of sql server database?
How do I open a .db file?
Is it ok to shrink transaction log?
what is the primary use of the model database? : Sql server administration
Do you know how to store and query spatial data?
How to resolve the orphan use problem? : sql server security
What is create command?
How to create a user name in a database?
Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
What is subquery in sql?
What are different types of statements that are supported by sql?
What is the difference between a unique key and primary key?
What are the differences between having and where clause.
How would you choose between a clustered and a non-clustered index?