250+ C programs for practice 2021 page no: 11

● Compare two strings using pointers.
● Find reverse of a string using pointers.
● Sort array using pointers.
● Return multiple values from a function using pointers.
11. File Handling
● Create a file and write contents, save and close the file.
● Read file contents and display on the console.
● Read numbers from a file and write even, odd and prime numbers to
separate file.
● Append content to a file.
● Compare two files.
● How to Copy contents from one file to another file.
● Merge two files to the third file.
● Count characters, words and lines in a text file.
● Delete a word from a text file.
● Remove the specific line from a text file.
● Remove empty lines from a text file.
● Find the occurrence of a word in a text file.
● Count occurrences of a word in a text file.
● Count occurrences of all words in a text file.
● Find and replace a word in a text file.
● Replace a specific line in a text file.
● Print source code of the same program.
● Convert uppercase to the lowercase character and vice versa in a text file.

Post a Comment

0 Comments