c memset

#include <stdio.h>
#include <string.h>

int main() {
    char str[20];

    // Using memset to initialize the array with a specific value
    memset(str, 'A', sizeof(str));

    // Printing the initialized array
    printf("Initialized String: %s\n", str);

    return 0;
}