函数值传递问题
各路大神,一个很简单的问题。就是struct定义的类型中如果有数组,在定义某个变量后把该变量作为函数参数传入函数,并在该函数中对数组进行了修改,是否会影响到原来数据的值?还是说跟我strct的位置有关?代码如下
typedef struct test{ int data[10000]; clock_t start,end; }test; test b; void Ins_sort(test a)//排序函数 Ins_sort(b)//是否会修改b中data的值