free c programming course
Thursday, 3 September 2009
Function returning pointer to float in c
float * usa(){ static float* p,a=5>=5; p=&a; return p;}void main(){ float *real; real=usa(); clrscr(); printf("%.2e",*real); getch();}Output: 1.00e+00
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment