EmbLogic's Blog

issues with question 18 of assgn1

#include<stdio.h>
int main()
{

long double mwt = 3.0e-23;
printf(“%LF”,mwt);
return 0;
}

why o/p is

./seventeen
0.000000

root@linuxstation asgmt#

One Response to issues with question 18 of assgn1

  1. m siddarth says:

    as we don’t have any long supported for double data type on 32 bit compiler. Hence it will always shows an output as 0

Leave a Reply to m siddarth Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>