Похожие чаты

0- if a dev try to 0 something with no

good reason, i will delete the product and its dev from my machines and my mind.
1-
char **f = (char **)calloc(1, sizeof(char *));
this is like
char f[1][] and in loop accessing f[>0][] is accessing outside of allocated area try it yourself and get undefined behaviour .
2- i did not ask about calloc's functionality. i said what is the reason of making it all 0? in this context there is no reason for it.

1 ответов

5 просмотров

0 - There is no one standard function call for dynamic memory allocation. If I want to use calloc, I use and want to delete it from your machine, it is your decision. 1 - Tell me what is the difference between this : char **f = (char **)calloc(1, sizeof(char *)); and this: char **f = (char **)malloc(1 * sizeof(char *)); 2 - You do not read what I wrote. He might want to be sure that all allocated memory starts with zero. Can you guarentee with that malloc? How do you know his requirements? Without req, you cannot say no reason for it.

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

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

А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
isn't utxo commitements pretty close though if someone wanted to get it over the finish line? my understanding is that most of the ground work was already down by verde
Luke High - Rabbi Of Bcash High Rabbi Of Bcash
23
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
20
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
is the buyback program live and at what prices are the purchases fixed? excuse me for the bland PA question, sophisticated defi people keke
Imnothere
20
Чем оно проблема?
Nikita Uzumaki
21
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
@samkazemian - couple questions: Update on frxBTC? - This would do well with the current influx of institutional investment entering the space Update on future veFXS streams...
Costi
16
Hi, I was reading this https://twitter.com/HouseofChimera/status/1778078991762780408 about Verasity and their likely choice of Tron as blockchain for their token for its low f...
Jordi
13
Карта сайта