Constants in C interview questions


Total available count: 17
Subject - Programming Languages
Subsubject - Constants in C

What are therules for constructing floating-point constants in fractional form?

  1. A floating-point constant in fractional form is a sequence of digits with a decimal point placed anywhere in the sequence
  2. Floating point constants may be preceded by an optional + or - sign

Example:  

  1. const float x = .3
  2. const float y= 3.
  3. const float z = 52.7
  4. const float m = -9.99

 




Next 5 interview question(s)

1
What are the rules for constructing floating-point constants in fractional form?
2
What are the rules for constructing Hexadecimal integer constants?
3
What are the rules for constructing octal integer constants?
4
What are the rules for defining symbolic constants?
5
What is Character Constant and explain the rules?


Comments