Category: Language
code: #include<stdio.h> void printArray(int *p_array,int n) { int i; printf(“Content of the array: “); for(i=0; i<n; i++)…
code: #include<stdio.h> int main() { int i; int x[]= {10,20,30,40,50}; printf(“%p %p\n”,x+1,&x[1]); //base address is always pointing…
A ll Codes, Array, C, C Refresh, Pointer
In function we can’t retun more than one value with return keyword. In this case we need pointer…
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…
Recent Comments