C Programming - Library Functions - Discussion
Discussion Forum : Library Functions - Point Out Errors (Q.No. 1)
1.
Point out the error in the following program.
#include<stdio.h>
int main()
{
fprintf("IndiaBIX");
printf("%.ef", 2.0);
return 0;
}
Answer: Option
Explanation:
Declaration Syntax:
int fprintf (FILE *stream, const char *format [, argument, ...]);
Example:
fprintf(filestream, "%s %d %s", Name, Age, City);
Discussion:
5 comments Page 1 of 1.
Ravi said:
1 decade ago
Please explain this.
Payal said:
1 decade ago
"%.ef" define what?
Bhakar said:
1 decade ago
Value in e power.
Jayashri Vyavahre said:
1 decade ago
What is the meaning of "%.ef" ?
Sowmiya said:
9 years ago
"%. ef" Can anyone explain this with an example?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers