What ios diff. Between %e & %f?
Answers were Sorted based on User's Feedback
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 |
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 |
How can a number be converted to a string?
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?
what is the most appropriate way to write a multi-statement macro?
What is meant by global static? why we have to use static variable instead of Global variable
write a own function to compare two strings with out using stringcomparition function?
What do you mean by Recursion Function?
What are the back slash character constants or escape sequence charactersavailable in c?
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.
Do you know the use of fflush() function?
write an algorithm and c program to add two 2x2 matrics
#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....?