Got garbage while char * puting to cout
===

Simple program that gets char pointer and puts it to the output.
	
    char * get()
	{
		char ss [256];
		sprintf (ss,"%d",1);
		return ss;
	}

	int _tmain(int argc, _TCHAR* argv[])
	{
	
		char *f = get();
		cout<<f;
		char d[50] ;
		cin>> d;

	}

I got only garbage on output. Why?
