c语言数组名字类型的问题


#include<stdio.h>
#pragma warning(disable:4996)
int main()
{
    float rootbeer[10];
    float things[10][5];
    float value = 2.2;
    int i = 3;
    int* pf;

    scanf("%f", &rootbeer);
    rootbeer = value;
    printf("%f", rootbeer);
    things[5] = rootbeer;
    pf = value;

    return 0;

想问一下,书本中说11-15行代码无效,说rootbeer不是float类型的,但是数组不是定义了float类型吗,而且在运行scnaf和printf语句的时候,vs并没有报错

对啊,书错了