新人求解 关于指针报错问题
程序代码:#include <stdio.h>
#include <stdlib.h>
typedef struct
{
int data[50];
int length;
} sList;
sList* createList(sList* L1, int n, int a[])
{
int i = 0, k = 0;
L1 = (sList*)malloc(sizeof(sList));
while (i为什么在dev-cpp上能正常运行,在vs上运行就会报错显示"使用了未初始化的局部变量L1"? 






