Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Declarations and Initializations
Which of the following correctly represents a long double constant?
6.68
6.68L
6.68f
6.68LF
Correct Answer:
6.68L
Explanation:
6.68
is
double
.
6.68L
is
long double
constant.
6.68f
is
float
constant.
6.68LF
is not allowed in c.
← Previous Question
Next Question→
More Questions from
Declarations and Initializations
If the definition of the external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function.
Size of short integer and long integer would vary from one platform to another.
Range of float id -2.25e+308 to 2.25e+308
A long double can be used if range of a double is not enough to accommodate a real number.
Range of double is -1.7e-38 to 1.7e+38 (in 16 bit platform - Turbo C under DOS)
A float is 4 bytes wide, whereas a double is 8 bytes wide.
Size of short integer and long integer can be verified using the sizeof() operator.
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments