What ios diff. Between %e & %f?

Answer Posted / sunil singh

both %e and %f are use for Floating point format specifier.
%e- it shows the value in the Exponential(scientific way).
%f - it shows this value to normal way.

Example:

float f = 1.34f;
printf("%e - %f",f,f);

outPut:

1.34e+00- 1.34

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1594


What is double pointer?

554


Write a Program to find whether the given number or string is palindrome.

607


What is ctrl c called?

588


How variables are declared in c?

567






Explain what are its uses in c programming?

590


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

553


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1836


Differentiate between null and void pointers.

627


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

634


What is new line escape sequence?

805


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15043


can we implement multi-threads in c.

657


what is recursion in C

605