C Programming - Declarations and Initializations - Discussion
Discussion Forum : Declarations and Initializations - General Questions (Q.No. 6)
6.
By default a real number is treated as a
Answer: Option
Explanation:
In computing, 'real number' often refers to non-complex floating-point numbers. It include both rational numbers, such as 42 and 3/4, and irrational numbers such as pi = 3.14159265...
When the accuracy of the floating point number is insufficient, we can use the double to define the number. The double is same as float but with longer precision and takes double space (8 bytes) than float.
To extend the precision further we can use long double which occupies 10 bytes of memory space.
Discussion:
50 comments Page 1 of 5.
Aathiraja said:
8 years ago
Please explain clearly.
(1)
Rekha said:
8 years ago
I have a doubt. What is the difference between the following terms?
Int a; and int a=20;
And
Int a=b,b=20;
Printf("%d",a);
What will be the output causes if the values consider first a = b or b values.
Int a; and int a=20;
And
Int a=b,b=20;
Printf("%d",a);
What will be the output causes if the values consider first a = b or b values.
(1)
Jeevi said:
9 years ago
Thanks for all the information with clear explanation.
Ayush said:
1 decade ago
What is Big floating?
Shradha said:
1 decade ago
What is far double?
Shradha said:
1 decade ago
What is rational numbers?
Basu said:
1 decade ago
A rational number is a number that can be written as a ratio. That means it can be written as a fraction, in which both the numerator (the number on top) and the denominator (the number on the bottom) are whole numbers.
Shashiaknt rajiv made said:
1 decade ago
What is double and long double?
Aditya tyagi said:
1 decade ago
void main ()
{
float a=1.1;
if(a>1.1)
printf("welcome");
else
printf("bye");
getch();
}
Why the output is welcome please tell?
{
float a=1.1;
if(a>1.1)
printf("welcome");
else
printf("bye");
getch();
}
Why the output is welcome please tell?
Lopa mandal said:
1 decade ago
Double is a floating point data type with higher range of 8 bytes. Where as, long double is 10 bytes.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers