What ios diff. Between %e & %f?

Answers were Sorted based on User's Feedback



What ios diff. Between %e & %f?..

Answer / 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

What ios diff. Between %e & %f?..

Answer / bsn.teja

sunil and ambar both are right i think

Is This Answer Correct ?    2 Yes 1 No

What ios diff. Between %e & %f?..

Answer / ambar

%e receives,stoers,outputs exponential values(eg:1.23e)
%f receives,stoers,outputs floating point or decimal values
(eg:2.34f)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

Derive the complexity expression for AVL tree?

1 Answers  


What functions are in conio h?

0 Answers  


what is void pointer?

2 Answers  


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2 Answers   Subex, Wipro,


Eight queens puzzle

0 Answers  






What is the difference between pure virtual function and virtual function?

0 Answers  


Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 Answers  


Why is struct padding needed?

0 Answers  


#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }

4 Answers   HCL,


write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????

7 Answers   Infosys, TCS,


How would you sort a linked list?

1 Answers  


Are local variables initialized to zero by default in c?

0 Answers  


Categories