このコード:
#include <tchar.h>
TCHAR example_function() {
TCHAR example_tchar[10];
return example_tchar;
}
int main() { }
エラーが発生します:
In function 'TCHAR example_function()':
error: invalid conversion from 'TCHAR* {aka char*}' to 'TCHAR {aka char}' [-fpermissive]
warning: address of local variable 'example_tchar' returned [enabled by default]