Answers:
int main() { char str[] = ""; FILE *fp,*fp1; int i=0; fp = fopen("a.txt","r");//Source file fp1 = fopen("b.txt","w");//Target file if (fp == NULL) { printf(" Cannot open the file"); return -1; } while( !feof(fp)) { str[i] = fgetc(fp); if(str[i] == ' ') { str[i+1]='
 Posted by: Syed Baseer Ahmed
Contact Syed Baseer Ahmed
I think using push and pop you can do it. int i, j; char c[],y[]; c[i]=get char(); push; pop y[j]=put char(); while (c[i] != ) begin if(c[i]=y[j]) print(both strings are equal); else print ("both are not equal"); end
 Posted by: ramarao
Contact ramarao
#include <Stdio.h> void main() { chr *s ,*t; int i; fp=fopen("File Name "+b); fscanf(fp,"%s",s); *s=*t; while(*t!=NULL) { t++; i++; } while(i--) printf("%c",*t) printf("%c",*t); }
 Posted by: Jayakumar
Contact Jayakumar
If you have the better answer, then send it to us. We will display your answer after the approval.