C program to print a string

c programming tutorial to print a string

print_string.c

#include <stdio.h>
 
int main()
{
    char array[20] = "Hello World";
 
    printf("%s\n",array);
 
    return 0;
}

Output

Hello World

0 comments:

Post a Comment

My Instagram