1.

Which is valid C expression?(a) int my_num = 100,000;(b) int my_num = 100000;(c) int my num = 1000;(d) int $my_num = 10000;I got this question during a job interview.My doubt is from Variable Names topic in portion Data Types, Operators and Expressions in C of C

Answer» RIGHT answer is (b) INT my_num = 100000;

To explain I would say: Space, comma and $ cannot be USED in a variable name.


Discussion

No Comment Found

Related InterviewSolutions