[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Basic Concepts - Discussion

Home > C Programming > Basic Concepts > MCQs Questions Discussion

19 / 90

What is the output of the following 'C' program ?

#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

Answer: Option (Login/Signup)

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 ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here