Question from the Language C - Fundamentals test

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

Archived

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: Archived(New question!)(Update)Question passed 294 times
-3
Community EvaluationsNo one has reviewed this question yet, be the first!