RCS file: file.c,v Working file: file.c head: 1.18 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 18; selected revisions: 18 description: This is main Program file for the Multiple Data Compression(MDC) in which i use file_open … Continue reading
RCS file: file.c,v Working file: file.c head: 1.17 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 17; selected revisions: 17 description: This is main Program file for the Multiple Data Compression(MDC) in which i use file_open … Continue reading
RCS file: functionlink.c,v 3 Working file: functionlink.c 4 head: 1.2 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 2; selected revisions: 2 11 description: 12 making link list using Functions. … Continue reading
2 RCS file: link.c,v 3 Working file: link.c 4 head: 1.2 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 2; selected revisions: 2 11 description: 12 making link list without … Continue reading
2 RCS file: file.c,v 3 Working file: file.c 4 head: 1.3 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 3; selected revisions: 3 11 description: 12 This is main Program … Continue reading
#include<stdio.h> int main() { int i,j,n,small,k; printf(“Enter the Element of Array\n”); scanf(“%d”,&n); int a[n]; printf(“Enter the element\n”); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); } for(i=0;i<n;i++) { small=i; for(j=i;j<n;j++) { if(a[j]<a[small]) small=j; } k=a[small]; a[small]=a[i]; a[i]=k; } for(i=0;i<n;i++) { printf(“%d\n”,a[i]); } }
#include<stdio.h> int main() { int i,j,n,temp,search,low,high,mid,c; printf(“Enter the element of array \n “); scanf(“%d”,&n); int a[n]; printf(“Enter the element\n”); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); } for(i=0;i<n;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=temp; } } } printf(“Array After Shorting\n”); for(i=0;i<n;i++) { … Continue reading
#include<stdio.h> int main() { int value=77,num=99; int *pv=&value,*pn=# int **ppi; ppi=&pv; printf(“**ppi=%d\n”,**ppi); ppi=&pn; printf(“**ppi=%d\n”,**ppi); system(“pause”); } in this program we use two pointer as shown in program . In this first two value are stored in two variable after … Continue reading
#include<stdio.h> int main() { int a[100],b[100],c[100],i,n; printf(“enter element of array :”); scanf(“%d”,&n); printf(“Enter element of A:\n”); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); } printf(“Enter element of A:\n”); for(i=0;i<n;i++) { scanf(“%d”,&b[i]); } for(i=0;i<n;i++) { c[i]=a[i]+b[i]; } for(i=0;i<n;i++) { printf(“a[%d] + b[%d]=c[%d]\n”,a[i],b[i],c[i]); } }
#include<stdio.h> int main() { int a[100],i,n; printf(“enter element of array :\t”); scanf(“%d”,&n); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); } for(i=0;i<n;i++) { printf(“a[%d]=%d\n”,i,a[i]); } }
#include<stdio.h> int main() { int a[100],n,i; float Avg=0,sum=0; printf(“enter Numbre of array :\t”); scanf(“%d”,&n); printf(“Enter the element of array\n”); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); sum=sum+a[i]; } Avg=sum/n; printf(“Avg = %f\n”,Avg); return 0; }
#include<stdio.h> int main() { int a[100],n,i,j; printf(“enter the value of array:”); scanf(“%d”,&n); printf(“enter the value :\n”); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); } j=a[0]; for(i=1;i<n;i++) { if(j<a[i]) j=a[i]; else j=j; } printf(“Largest element of array is :%d\n”,j); }
In the Last session we learn how to create FTP Server On Linux. To create FTP server there are few steps to follow which are given below. Mostly FTP are used as one of the most common means of copying … Continue reading