return pointer of type "void" however the adresse returned can be stored in any other type pointer , what behind the scenes happening ? and that can cause erros ? ,, when compiling and working without casting it works fine
The type is inferred from the variable you are using. But the compiler warns about it
well it output no warning and it works very good
Ah, you are using c, I thought it was c++. If it was the case, an error would appear
it wil be an undefined behaviour (UB) void fun(); . . . void fun(int a, int b) { return a+b; } this will compile but it's UB.
no no no , i use both :D , the oldest question was about cpp the newest about c .
Обсуждают сегодня