Question from the Language C - Fundamentals test

Write a C program that defines an array of characters and initializes it with the value 'a'.

Medium

What about the following code?

#include <stdlib.h>
#define LENGTH  100

int main()
{
        char password[LENGTH ];
        password[0] = 1; 
        password[1] = "a";
        char pseudo[LENGTH ];
        //

    }
Author: KahinaStatus: Published(Update)Question passed 57 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!