Category: C
here in this code the swap function will not return the value as swapped but it’s working…
code: #include<stdio.h> int main() { int x=300; char *k; int *p; k=(char*)&x; //here it is 1 byte…
/* Zaki Live pointer important topic */ #include<stdio.h> int main() { int *p,*q,**k; int x=100; p=&x; //p…
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: #include<stdio.h> int main() { int var=5; int* p; //p is integer pointer which is addresss of…
code: #include<stdio.h> int absolute() { int n; printf(“Enter Value to Get Absolute:”); scanf(“%d”,&n); if(n<0) n=n*(-1); return n;…
Recent Comments