What is the purpose of the 'unchecked' keyword in C#?
A. Enables overflow checking
B. Terminates the program
C. Compiles the program without errors
D. Disables overflow checking for integral-type arithmetic operations
Answer: Option D
A. Enables overflow checking
B. Terminates the program
C. Compiles the program without errors
D. Disables overflow checking for integral-type arithmetic operations
Answer: Option D
What is the correct syntax to declare a variable in C#?
A. num = int;
B. var num;
C. num int;
D. int num;
What is the purpose of the 'var' keyword in C#?
A. Declares a constant
B. Converts a variable to string
C. Implicitly declares a variable
D. Defines a method
Join The Discussion