Похожие чаты

Btw , this function in c = malloc() has a

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

5 ответов

5 просмотров

The type is inferred from the variable you are using. But the compiler warns about it

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
Bruno F
The type is inferred from the variable you are usi...

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

𝘼𝙗𝙙𝙤 🧢
well it output no warning and it works very good

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.

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
Bruno F
Ah, you are using c, I thought it was c++. If it w...

no no no , i use both :D , the oldest question was about cpp the newest about c .

Похожие вопросы

Обсуждают сегодня

тоесть, указав return eax, сгенерируется никому ненужная инструкция mov eax,eax ?
Aiwan \ (•◡•) / _bot
24
читать файл максимально быстро? странный вопрос))
zamtmn
53
Посоветуйте пожалуйста аудио плеер для библиотеки mp3- FLAC на компьютере. На Винде пользовался Aimp, в том числе для конвертации. Много нужных команд было прямо в контекст...
Виктор Кузнецов
31
How Much Btc Falling Down ?
Suriya
22
Hi guys ! Anvil is out ! Time for me to stake on capacity. Does someone has a clear tutorial ? I’m thinking about buying a ledger. Is that really possible to stake directl...
Mister Grega
15
It is definitely an interesting conversation. Breaking up the users into 2 personas: 1. Someone who wants to use the products (I want “x” pegged stablecoin that provides safe...
Bueno Pues
10
Приветствуем всех! Устали без проектов? Если вы программист и хотите получать стабильные заказы, компания Elif предлагает вам недельный курс по поиску проектов и их ведению. ...
Elif
1
Is someone using mymonero? What can you say about the wallet?
warrenique
16
А чего сейчас в моде вместо Error для эксепшенов? А то я тут внезапно узрел что он не рекомендуется :) У Try::Tiny какой-то совершенно ужасный синтаксис если надо конкретные э...
Denis F
19
Ajeeb aadmi hai, isko padhna nahi aata kya?
Jay Bansal
43
Карта сайта