I would suggest you to use command line arguments.
int main(int argc , char *argv[])
{
int *fp;
fp = fopen(argv[1] , "r");
.
.
.
Type: Posts; User: Sasi Srinivas
I would suggest you to use command line arguments.
int main(int argc , char *argv[])
{
int *fp;
fp = fopen(argv[1] , "r");
.
.
.
I think the mistake is in the if loop where the braces need to be used correctly.
For example if you say a || b || c and you want to first compute a combination of two of the three you need to...