私はcで小さなプログラムを実行しています.すべてが完全に機能しますが、あるプロセスでいくつかの値を配列に割り当てる必要がありますが、最後の値を自動的に0にしたいです
printf("cantidad de valores codificados a ingresar "); /*amount of values to enter*/
scanf("%d",&l);
printf("\ningrese los valores a decodificar: "); /*entering values*/
for(i=0;i<l;++i) {
scanf("\n%d ",&c[i]);
}