C Program to Copy One File to Another File

This C Program copies a file into another file. Here is source code of the C Program to copy a file into another file. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Copy a File into Another File */#include <stdio.h> void main(int … Read more

advertisement

C Program to Capitalize First Letter of Each Word in a File

This C Program capitalizes first letter of every word in a file. Here is source code of the C Program to capitalize first letter of every word in a file. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Capitalize First … Read more

advertisement

C Program to Find the File Size using File Handling Function

This C Program finds the size of file using file handling function. Here is source code of the C Program to find the size of file using file handling function. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Find the … Read more

advertisement

C program to Find the Function Name of a C File

This C Program displays the function names defined in c source file. Here is source code of the C Program to display the function names defined in c source file. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C program to Display the … Read more

advertisement

C Program to Find Sum of Numbers in Command Line Arguments Recursively

This is a C Program to find sum of numbers given in command line arguments recursively. Problem Description This C Program find sum of numbers given in command line arguments recursively. Problem Solution This C Program Prints the sum of numbers given in command line arguments. Program/Source Code Here is source code of the C … Read more

advertisement

C Program to Count the Number of Lines in Text File

This C Program displays the number of lines in a text file. Here is source code of the C Program to find the number of lines in a text file. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Find the … Read more

advertisement

C Program to Merge Alternate Lines from Two Files

This C Program merges lines alternatively from 2 files & print result. Here is source code of the C Program to merge lines alternatively from 2 files & print result. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program that Merges Lines … Read more

advertisement

C Program to Replace a Specific Line in a Text File

This C Program replace a specified line in a text file. Here is source code of the C Program to replace a specified line in a text file. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Replace a specified Line … Read more

advertisement

C Program to Append the Content of One File to the End of Another File

This C Program appends the content of file at the end of another. Here is source code of the C Program to append the content of file at the end of another. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to … Read more

advertisement

C Program to List Files in Directory

This C Program lists files in directory. Here is source code of the C Program to list files in directory. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to List Files in Directory */#include <dirent.h>#include <stdio.h> int main(void){ DIR *d; struct dirent *dir; … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.