Пожалуйста, не сравнивай с пальцем. Ненадо этого делать.
Кууча фон ЮчаГуру (3938)
5 лет назад
#include
char* getStr(void)
{
return "str";
}
int main(void)
{
int num = getStr();
printf("%d", num);
return 0;
}
-----
1>------Build started: Project: Project3, Configuration: Debug Win32 ------
1>main.c
1>c:\users\user\source\repos\project3\project3\main.c(10): error C2220: warning treated as error - no 'object' file generated
1>c:\users\user\source\repos\project3\project3\main.c(10): warning C4047: 'initializing': 'int' differs in levels of indirection from 'char *'
1>Done building project "Project3.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========