#include<stdio.h> void binary(long); int main() { long n; printf("Type a value : "); scanf("%ld",&n); bin...
Read More
Read A File in C
#include<stdio.h> int main() { FILE *fp; int ch; fp=fopen("myfile.txt","r"); if(fp==NULL) { printf(...
Read More
Write A text file In C
#include<stdio.h> int main() { FILE *fp; char mystr[100]; fp=fopen("mytext.txt","w"); if(fp==NULL) { puts...
Read More
Count Character In File
#include<stdio.h> int main() { FILE *fp; char a[10]; long cnt=0; int c; printf("Type a file name : "); gets(...
Read More
File To UpperCase Using Command line
#include<stdio.h> int main(int n,char *a[]) { int c; FILE *fr,*fw; if(n!=3) { printf("Invalide numbers of arguments....
Read More
File Copy In C using command line
#include<stdio.h> int main(int argc,char *argv[]) { FILE *fs,*ft; int ch; if(argc!=3) { printf("Invalide numbers of arg...
Read More
Alphabet Pattern Using C
A AB ABC ABCD ABCDE E DE CDE BCDE ABCDE Code of above pattern Code of above pattern A BA CBA DCBA EDCBA E ED EDC EDCB EDCBA Code ...
Read More
Sum of Two Number Using C Language
#include<stdio.h> int main() { int var2; int var1; int var3; printf("Type your frist value to add : "); ...
Read More
Subscribe to:
Posts (Atom)