free c programming course
Thursday, 3 September 2009
Function returning pointer to character in c
char const*uuu(){ char const *string="G. Bush"; return string;}void main(){ char const *ptr; ptr=uuu(); clrscr(); printf("%s",ptr+3); getch();}Output:Bush
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment