Question from the Language C - Fundamentals test

Write a C program that prints the name, age, and height of a person.

Medium

What does the following code display?

    int main() 
    {     
        char name[]; 
        int age = 18; 
        double height= 1.75;
        scanf(“%s”, name);
        printf(“%d/n%f/n%s/n”,age,height,name);
        
        return 0;    
    }
Author: Vincent CotroStatus: Published(Update)Question passed 200 times
Edit
-2
Community Evaluations
developer avatar
Ambiguous
Nick LAM YEE MAN
11/12/2023
Techniquement le code n'affichera rien à cause du %s
developer avatar
Incorrect answer
Lancelot
20/12/2023
It will not show anything since the token is not valid
developer avatar
Spelling / formatting error
Delightful Zebra
31/08/2024
La question est toute pétée : le tableau n'a pas de taille, les guillemets sont incorrects (char \343), des /n sont présents au lieu des espaces (pour \n ?)...
developer avatar
Auteur anonyme
02/09/2024
Est-ce que tu peux proposer une nouvelle version de la question ?