char (*pa())[4];void main(){ char(*p)[4]=pa(); clrscr(); printf("%d",**p); getch();}char (*pa())[4]{ static char arr[]={'\11','\12','\13','\14'}; return &arr;}Output: 9ONE MORE EXAMPLE:int* insertion_sort();void main(){ int *arr,i; arr=insertion_sort(); clrscr(); for(i=0;i<=7;i++) printf("%d ",arr[i]); getch();}int * insertion_sort(){static int
No comments:
Post a Comment