Ads block

Banner 728x90px

Other Important Programs


a)C Program to Check Armstrong for 3 digit number Source Code : #include <stdio.h> int main() {     int num, originalNum, remainder, result = 0;     prin…
Read more »

Question Papers


Previous Question Papers All Question Papers: [posts--tag:Question Papers--50]
Read more »

29. write a C Program to count number of vowels, consonants, digits, words in a given file


29. write a C Program to count number of vowels, consonants, digits, words in a given file
Program to count number of vowels, consonants, digits, words in a given file Source Code: #include <stdio.h> #include<ctype.h> int main() {   char …
Read more »

28. write a C Program to display the file content on reverse order


28. write a C Program to display the file content on reverse order
Program to display the file content on reverse order Source Code: #include<stdio.h> int main() {       FILE *fp;       char ch;       int i,pos;       fp…
Read more »

27. write a C program to merge the two files


27. write a C program to merge the two files
Program to merge the two files Source Code: #include <stdio.h> #include <stdlib.h> int main() { FILE *fp1 = fopen("/home/smec/Desktop/file1.tx…
Read more »

26. write a C program to append data to the file


26. write a C program to append data to the file
Program to append data to the file. Source Code: #include <stdio.h> int main() {    FILE *fp;    char str[80];      fp = fopen("/home/smec/Desktop/h…
Read more »

25. write a C program to copy the data from one file to another.


25. write a C program to copy the data from one file to another.
Program to copy the data from one file to another. Source Code: #include<stdio.h> void main() { FILE *fp,*fp1; int ch; fp=fopen("/home/smec/blank.tx…
Read more »

24. write a C program to implement call by value and call by reference


Program to implement call by value and call by reference 24a) Call by Value Source Code: #include<stdio.h> void swap(int a,int b) { int t; t=a; a=b; b=t;…
Read more »

23. write a C program to find the factorial of a number using recursive functions


Program to find the factorial of a number using recursive functions  Source Code: #include<stdio.h> int fact(int n) { int f; if(n==0) return 1; else f=n*…
Read more »

22. write a C program to find the factorial of a number using functions


Program to find the factorial of a number using functions  Source Code: #include<stdio.h> void function(int number) { int i,fact=1; i=1; while(i<=numb…
Read more »