#include "stdafx.h" #include #include char *getString() { int x; char buffer[12]; strcpy(buffer, "hello there"); //printf("buffer address: %X\n",buffer); //printf("x address: %X\n",&x); return buffer; } void makeUpper(char *str) { int x; char localStr[12] = "goodbye"; printf("%s\n",str); printf("%s\n",localStr); for(;*str = toupper(*str); str++); printf("%s\n",localStr); } int _tmain(int argc, _TCHAR* argv[]) { int y; char *str = getString(); makeUpper(str); printf("Press return to end ..."); char c; scanf("%c",&c); y = 4; return 0; }