Bolognia
Wednesday, 18 September 2013
Returning pointer from a function in c
Returning pointer from a function in c
What's the problem with the following code
#include<stdio.h>
int main()
{
int *a=pointer_return();
}
int* pointer_return()
{
int a=10;
return &a;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment