这段代码:
#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]