C语言:数组整体赋值使用scanf()用数组名只能给第一个赋值

#include <stdio.h>
//数组整体赋值使用scanf()用数组名只能给第一个赋值 
main()
{
    int a[4],b;
    scanf("%d",a);
    for(b=0;b<4;b++)
    printf("%d ",a[b]);
    getchar();
 }

 

 

 

posted @ 2022-09-30 15:07  myrj  阅读(220)  评论(0编辑  收藏  举报