a) ‘Var’ is introduced in C# (3.0) and ‘Dynamic’ is introduced in C# (4.0)
b) ‘Var’ is a type of variable where declaration is done at compile time by compiler while ‘Dynamic’ declaration is achieved at runtime by compiler
c) For ‘Var’ Error is caught at compile time and for ‘Dynamic’ Error is caught at runtime
d) All of the mentioned
DIFFERENCE BETWEEN KEYWORDS ‘VAR’ AND ‘DYNAMIC’?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
DIFFERENCE BETWEEN KEYWORDS ‘VAR’ AND ‘DYNAMIC’?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!