RCS file: prog4.c,v Working file: prog4.c head: 1.29 branch: locks: strict root: 1.29 access list: symbolic names: keyword substitution: kv total revisions: 29; selected revisions: 29 description: add student record complete —————————- revision 1.29 locked by: root; date: 2014/07/20 12:00:57; … Continue reading
1 2 RCS file: header.h,v 3 Working file: header.h 4 head: 1.1 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 1; selected revisions: 1 11 description: 12 include all header … Continue reading
1 #include<stdio.h> 2 #include<stdlib.h> 3 4 int stcmp(char *str1 ,char *str2) 5 { 6 int dif,i=0; 7 while(str1[i]!=”||str2[i]!=”) 8 { 9 dif=(str1[i]-str2[i]); 10 if(dif!=0) 11 { 12 break; 13 } 14 i++; 15 } 16 if(dif>0) 17 { 18 printf(“-%d”,dif); … Continue reading
1 #include<stdio.h> 2 #include<stdlib.h> 3 char* ip() 4 { 5 char *s1,ch; 6 int i=0; 7 s1=(char*)malloc(sizeof(char)); 8 while(1) 9 { 10 scanf(“%c”,&ch); 11 s1=realloc(s1, i+1*sizeof(char)); 12 if(ch==10) 13 break; 14 s1[i]=ch; 15 i++; 16 } 17 printf(“%s\n”,s1); 18 return … Continue reading
#include<stdio.h> 2 main() 3 { 4 int i,j,k,l,m,A,v; 5 printf(“\nsize”); 6 scanf(“%d”,&k); 7 char x; 8 9 int a[k]; 10 11 for(i=0;i<k;i++) 12 { 13 scanf(“%d”,&a[i]); 14 } 15 16 while(1){ 17 getchar(); 18 printf(“\npress i to insetre tyhe array”); … Continue reading