Variables represent storage locations.

Every variable has a type that determines what values can be stored in the variable.

Local variables are variables that are declared in methods,properties,or indexers.

A local variables is defined by specifying a type name and a declarator that specifies the variable name and an optional initial value,as in

View Code
1 int a;
2 int b=1;

but it is possible for a local variable declaration to include multiple declarators.The declarations of a and b can be rewritten as:

View Code
1 int a,b=1;

 

相关文章:

  • 2021-12-03
  • 2021-07-21
  • 2021-07-28
  • 2021-07-29
  • 2022-02-14
  • 2021-05-26
  • 2021-10-04
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2021-08-28
  • 2021-05-30
  • 2021-11-02
  • 2022-01-05
  • 2021-11-21
相关资源
相似解决方案