adplus-dvertising
frame-decoration

Question

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;

Posted under C Programming

Answer: (b).int my_num = 100000;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is valid C expression?

Similar Questions

Discover Related MCQs

Q. Which of the following is not a valid variable name declaration?

Q. What is the problem in following variable declaration?

float 3Bedroom-Hall-Kitchen?;

Q. Which of the following cannot be a variable name in C?

Q. Which of the datatypes have size that is variable?

Q. For the following code snippet:

char *str = “compscibits.com\0” “training classes”;
The character pointer str holds reference to string:

Q. enum types are processed by

Q. Which is false?

Q. Which of the following declaration is not supported by C?

Q. Which of the following declaration is illegal?

Q. Which keyword is used to prevent any changes in the variable within a C program?

Q. Which of the following is not a pointer declaration?

Q. Which is false ?

Q. A variable declared in a function can be used in main

Q. The name of the variable used in one function cannot be used in another function

Q. The precedence of arithmetic operators is (from highest to lowest)

Q. Which of the following is not an arithmetic operation?

Q. Which of the following data type will throw an error on modulus operation(%)?

Q. Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?

Q. Are logical operators sequence points?

Q. Does logical operators in C language are evaluated with short circuit?