edited by
2,200 views
2 votes
2 votes

What is the output of the following $C$-program

main()
{
    printf("%d %d %d",size of (3.14f), size of (3.14), size of (3.141));
}
  1. 4 4 4
  2. 4 8 10
  3. 8 4 8
  4. 8 8 8
edited by

6 Answers

0 votes
0 votes
(4,8,8)

This is not in options but other than first no, nothing in the float. other are long unsigned datatype
0 votes
0 votes
A. 4 8 8

float takes 4 bytes and decimal number without f is consider as double so it takes 8 bytes

Related questions

0 votes
0 votes
2 answers
1
go_editor asked Mar 27, 2020
1,502 views
What will be the value of $i$ for the following expression:int f=11, i=3 ; i + = (f>3) ? i & 2:5 ;$2$$5$$13$$12$
2 votes
2 votes
2 answers
2
makhdoom ghaya asked Aug 19, 2016
1,576 views
If an integer needs two bytes of storage, then the maximum value of unsigned integer is$2^{16} – 1$$2^{15} – 1$$2^{16}$ $2^{15}$
0 votes
0 votes
1 answer
3
go_editor asked Mar 27, 2020
405 views
The Register or main memory location which contains the effective address of the operand is known as:PointerIndexed registerSpecial LocationsScratch Pad
0 votes
0 votes
1 answer
4
go_editor asked Mar 27, 2020
399 views
A Top - down Parse generatesLeft most derivationRight – most derivationRight most derivation in reverseLeft – most derivation in reverse