Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How can a number be converted to a string?

1 Answers  


34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

0 Answers  


what is the most appropriate way to write a multi-statement macro?

1 Answers  


What is meant by global static? why we have to use static variable instead of Global variable

4 Answers   L&T,


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


What do you mean by Recursion Function?

0 Answers   Hexaware,


What are the back slash character constants or escape sequence charactersavailable in c?

0 Answers  


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


write an interactive program to generate the divisors of a given integer.

7 Answers   TCS,


Do you know the use of fflush() function?

0 Answers  


write an algorithm and c program to add two 2x2 matrics

2 Answers  


#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 Answers  


Categories