BTW - you still have a bug in your for loop - you access 11 elements whule have only 10 in the array
Type: Posts; User: vart
BTW - you still have a bug in your for loop - you access 11 elements whule have only 10 in the array
your indentetion suxx big deal - you do not even see simplest bugs
also - when you have return inside if - you do not need else - it just adds unneded indentation level
#include <stdio.h>
...
post your last code
what are you talking about?
fscanf reads from the "indata.txt"
what it has to do with your pressing enter?
your fscanf could return 1 if one float value is successfully parsed
0 if nothing is parsed (for example string that is not a number encountered)
or EOF (which is -1 on most compilers) if the...
1. do not put regular text inside the code tags
2. indent your code
#include <stdio.h>
int main ()
{
int i,a[10],val,n=0,max,min;
FILE *fi,*fo;