1 2 RCS file: main.c,v 3 Working file: main.c 4 head: 1.10 5 branch: 6 locks: strict 7 root: 1.10 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 10; selected revisions: 10 12 description: 13 … Continue reading
RCS file: main.c,v Working file: main.c head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: created master array which contains distinct characters of file which is opened —————————- … Continue reading
RCS file: mdc.c,v Working file: mdc.c head: 1.6 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: Started the project “muldiple data compression & encryption. Read file with open command. —————————- revision … Continue reading
1#include<stdio.h> 2 #include<stdlib.h> 3 4 int main() 5 { 6 int *a,i=0,j=0,k,l,m,b,least; 7 a=(int *)malloc(sizeof(int)); 8 9 while(1) 10 { 11 12 printf(“\n\nenter the elements in an array, remember at ’0′ insertion of elements in array will be terminated : … Continue reading
1 #include<stdio.h> 2 #include<string.h> 3 4 int main() 5 { 6 int n1,n2,i; 7 8 printf(“\n\nfirst enter the number of max. words u will enter in each strings “); 9 printf(“\n\nin first string words u will use are : “); … Continue reading
1 #include<stdio.h> 2 void main() 3 { 4 int i,j,n,n1,n2; 5 6 7 printf(“\n\nenter the number of values u will enter : “); 8 9 scanf(“%d”,&n1); 10 11 int a[n1]; 12 13 printf(“\nnow enter values of elements : \n”); 14 … Continue reading
#include<stdio.h> int main() { int i,j,b,k,n,l; printf(“\n\nenter the number of values u will enter : “); scanf(“%d”,&n); int a[n]; printf(“\nnow enter the elements : \n”); for(l=0;l<n;l++) { scanf(“%d”,&a[l]); } for(i=0;i<n;i++) { for(j=0;j<n-1;j++) { if(a[j]>a[j+1]) { b=a[j]; a[j]=a[j+1]; a[j+1]=b; } } … Continue reading
today i configured FTP,TFTP & NFS servers……
1#include<stdio.h> 2 #include<math.h> 3 int main() 4 { int a,b,i; 5 printf(“\n\nenter two no.s : “); 6 scanf(“%d %d”,&a,&b); 7 do 8 { 9 printf(“\nenter 1 for ‘+’ : “); 10 printf(“\nenter 2 for ‘-’ : “); 11 printf(“\nenter 3 … Continue reading
1#include<stdio.h> 2 int main() 3 { 4 int x[5],l,s,i,j,k,z=0; 5 while(z<3) 6 { 7 printf(“\nenter any five numbers : “); 8 for(i=0;i<5;i++) 9 { 10 scanf(“%d”,&x[i]); 11 } 12 l=x[0]; 13 s=x[4]; 14 for(j=1;j<5;j++) 15 { 16 if(l<x[j]) 17 { … Continue reading
1 #include<stdio.h> 2 int main() 3 { 4 int num[100],sum=0,n,i,ret; 5 printf(“enter the number of values u want 2 add\n”); 6 scanf(“%d”,&n); 7 printf(“enter the values\n”); 8 for(i=0;i<n;i++) 9 { 0 scanf(“%d”,&num[i]); 1 sum=sum+num[i]; 2 } 3 printf(“sum=%d\n”,sum); 4 ret … Continue reading
day before yesterday i’ve learnt how to configure FTP server, & also added one group with some users in that server whose directory is in / & changed the ownership & permission given to group users using chmod command………….
i’ve learnt today to create user with command-useradd, also difined user’s directory & shell, using chown i’ve changed the user & group owner of the file & directory, i also learnt the use of chmod,ll,userdel,passwd,ap,grep by practising them……