Write a c program for storing a single word. Based on the character in the word make such an array where all combinations of characters will be available.
Answers
Answered by
0
void makeWordList (char *fileName)
{
FILE *inputFile;
char ch;
int index = 0;
inputFile = fopen (fileName, "r");
ch = fgetc (inputFile);
while (ch != EOF) { if (ch != '\n')
{
if (index >= CHAR_LIMIT)
{
printf ("Character limit reached. Exiting program.\n");
exit (0);
then create two files in array then use this code
void compareFiles (char *fileName1, char* fileName2) { }
{
FILE *inputFile;
char ch;
int index = 0;
inputFile = fopen (fileName, "r");
ch = fgetc (inputFile);
while (ch != EOF) { if (ch != '\n')
{
if (index >= CHAR_LIMIT)
{
printf ("Character limit reached. Exiting program.\n");
exit (0);
then create two files in array then use this code
void compareFiles (char *fileName1, char* fileName2) { }
Similar questions