小编Adr*_*ies的帖子

为什么我的变量没有初始化?

我已经将我的代码减少到最简单以隔离我的问题,我弄清楚我的问题是什么,但我无法解决它.事实上,我甚至不知道是否有问题.

我有一个函数,用于初始化未初始化的变量并重新初始化已初始化的变量.我的问题是我声明的变量似乎是初始化的.

以下是代码的内容:

/**
  * This software defines the type TabDyn and gives the tools to manipulate it
  * 
  * TabDyn is conceptually an array of integers. The first element is the size while the others are the members of the array.
  *
  * Here are the function provided to manipulate TabDyn :
  *     td_clear(TabDyn* td) : Create the TabDyn object if non existant and initialize it to an empty one. If it exists, it empties it.
  *
  */ …
Run Code Online (Sandbox Code Playgroud)

c free valgrind calloc

0
推荐指数
1
解决办法
132
查看次数

标签 统计

c ×1

calloc ×1

free ×1

valgrind ×1