free c programming course
Thursday, 3 September 2009
Function which is returning pointer to pointer in c
int** ibm(){ static int a[]={4,8,12,16}; static int *pointer=a; static int **p=&pointer; return p;}void main(){ int **ptr; ptr=ibm(); clrscr(); printf("%d",++**ptr); getch();}Output:5
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment