Const vs Readonly C# | Compile-Time Constant vs Run-Time Constant C# | C# Constants
Const vs Readonly C# | Compile-Time Constant vs Run-Time Constant C# | C# Constants
Agenda:
---------------
Q01. How can you make a variable as immutable in C#?
Q02. What is the difference between const and readonly in C#? How a const and readonly differ from static variable?
Constant:
-----------
Q01. What is constant (const) in C#? Can you use var for declaring a constant variable in C#?
Q02. Where can you declare a constant variable in C#? Can you initialize a constant value with an expression in C#?
Q03. Can you define a constant (const) as static?
Q04. Can you define a reference type as constant in C#?
Q05. Can nullable primitive data types be defined as constant in C#?
Q06. Can a constant variable be accessed globally in C#?
Q07. Can you pass a constant as REF or OUT parameter in C#? Why?
Q08. Is there any memory allocation for constants during runtime in C#?
Q09. Where are the constants variables stored in C#?
Q10. How can you access a constant me
7 views
1755
559
5 months ago 00:51:14 2
Raspberry Pi Pico Lecture 6: Protothreads and Fixed Point Arithmetic