14 Answers
New Answer14 Answers
New Answer#include <stdio.h> int main() { char ch; FILE *fpw; fpw = fopen("C:\\newfile.txt","w"); if(fpw == NULL) { printf("Error"); exit(1); } printf("Enter any character: "); scanf("%c",&ch); /* You can also use fputc(ch, fpw);*/ fprintf(fpw,"%c",ch); fclose(fpw); return 0; }
the three terms used to describe an object oriented programming are attributes ,behaviour,and;
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message