Got it working
#include<stdio.h>
int main()
{
FILE *fin,*fout;
int ch,flag=0,count;
char temp[20];
Type: Posts; User: abh!shek
Got it working
#include<stdio.h>
int main()
{
FILE *fin,*fout;
int ch,flag=0,count;
char temp[20];
I wonder if I declare ch as an int, how will these things react:
because temp[i] is char and ch is int...
I did change ch to int but the program still behaves the same for some reason :-/
This is supposed to reverse every word in a file. From the command line output looks like its stuck somewhere.
/*Reverse every word in a file*/
#include<stdio.h>
int main()
{
FILE...