Answers for "C file input/output"

C
13

read files in c

#include<stdio.h>
int main(){
	FILE *in=fopen("name_of_file.txt","r");
	char c;
	while((c=fgetc(in))!=EOF)
		putchar(c);
	fclose(in);
	return 0;
}
Posted by: Guest on April-30-2020
-2

c input output

#include <stdio.h>    
int main()
{ 
    // Displays the string inside quotations
    printf("C Programming");
    return 0;
}
Posted by: Guest on November-03-2020

Code answers related to "C"

Browse Popular Code Answers by Language