Write a C program to get a string using Array.

Function Main
    Declare String Array str[20]
    Input str
    Output ""&str
End

#include <stdio.h>
int main() {
    //! showArray(str)
    char str[20];
    gets(str);
    printf("[%s]\n", str);
    return 0;
}

Hi, My name is Anis
[Hi, My name is Anis]

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.