C Programming :: Basic Concepts - Discussion
19 / 90
#include<stdio.h>
void main()
{
printf("%d %d %d", sizeof(3.14f), sizeof(3.14), sizeof (3.14l));
}
#include<stdio.h>
void main()
{
printf("%d %d %d", sizeof(3.14f), sizeof(3.14), sizeof (3.14l));
}
A4 4 4
B4 Garbage value
C4 8 12
DError
Show Explanation
Similarly, 3.14 denotes it is a double-type value, so it's size is 8 bytes.
And, 3.14l denotes it is a long double type of variable, so it's size is 12 bytes.
Hence, the output is 4 8 12.
Asked In ::
Here, 3.14f denotes that it is a float-type value, so the size of a float-type value is 4 bytes.
Similarly, 3.14 denotes it is a double-type value, so it's size is 8 bytes.
And, 3.14l denotes it is a long double type of variable, so it's size is 12 bytes.
Hence, the output is 4 8 12.
Read Full Answer
Report Error
Please Login First Click Here
Here, 3.14f denotes that it is a float-type value, so the size of a float-type value is 4 bytes.
Similarly, 3.14 denotes it is a double-type value, so it's size is 8 bytes.
And, 3.14l denotes it is a long double type of variable, so it's size is 12 bytes.
Hence, the output is 4 8 12.
Read Full Answer
Report Error
Please Login First Click Here