Skip to content

Commit a64b5e6

Browse files
committed
feat: Differences Between Local
and Global Variables: These distinctions are crucial in understanding variable management and memory optimization within a program. Signed-off-by: Somesh diwan <[email protected]>
1 parent 4959b8f commit a64b5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Section10Methods/LocalandGlobalVariables/src/Differences Between Local and Global Variables.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Differences Between Local and Global Variables
1+
Differences Between Local and Global Variables:
22

33
- Scope:
44
• Local Variables: Declared inside a method, constructor, or block; accessible only within that specific region.
@@ -22,4 +22,4 @@ Differences Between Local and Global Variables
2222
• Local Variables: Ideal for temporary storage and operations confined to a specific block or method.
2323
• Global Variables: Suitable for data that needs to be shared among multiple methods within a class.
2424

25-
These distinctions are crucial in understanding variable management and memory optimization within a program.
25+
These distinctions are crucial in understanding variable management and memory optimization within a program.

0 commit comments

Comments
 (0)