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 |
Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }
can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?
Explain what are bus errors, memory faults, and core dumps?
Write a progarm to find the length of string using switch case?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?
f() { int a=2; f1(a++); } f1(int c) { printf("%d", c); } c=?
What is the difference between #include <header file> and #include “header file”?
Explain zero based addressing.
What is typedef struct in c?
which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
Explain pointers in c programming?