Category: String
code: #include<stdio.h> typedef struct { int roll; char name[20]; double gp; double phy,chem,math; }sTudent; void inputStudent(sTudent *sp)…
code: #include<stdio.h> typedef struct { int roll; char name[20]; double gp; } sTudent; void inputStudent(sTudent *sp) {…
theortecical concept source: http://stackoverflow.com/questions/20347170/char-array-and-char-array code: char *array = “One good thing about music”; char array[] = {“One”,…
code: #include<stdio.h> void toggleChar(char *sptr){ int i; for(i=0;*(sptr+i)!=’\0′;i++) { if(*(sptr+i)>=’a’ && *(sptr+i)<=’z’) *(sptr+i)=*(sptr+i)-32; else if(*(sptr+i)>=’A’&& sptr[i]<=’Z’) *(sptr+i)=*(sptr+i)+32;…
code: #include<stdio.h> char converter() { char ch[100]; gets(ch); int t,l,i; for(i=0; ch[i]!=’\0′; i++); //printf(“%d”,i); for(t=0; t<i; t++)…
Code is here: #include<stdio.h> int main() { int number; scanf(“%d”,&number); char digits[2000000]; int i=0,d; while(number>0) { d=number%10;…
Recent Comments