All the variables local to a method in C# must be initialized before they can be used

Skill/Topic: Beginner
A) True
B) False

Showing Answers 1 - 3 of 3 Answers

vishal rathod

  • Nov 28th, 2005
 

The answer is :-TRUE

  Was this answer useful?  Yes

Sameeksha

  • Dec 5th, 2005
 

True: All local variables in a method must be initialized before using them. However, data member variables of a class are assigned default values even if the programmer does not explicitly initialize them. The defaults are zero for numeric types, empty string for string type and false for boolean type.

  Was this answer useful?  Yes

sittu

  • Dec 15th, 2005
 

all the local and global varaibles should be declared before these varibales are used.or can be declared in the same line user want to use(along with datatype)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions