Answers for "loop guy"

0

loop guy

// C program to store words in an array
  
#include <stdio.h>
  
int main()
{
    int i;
  
    // Direct initialization of 2-D char array
    char array[][20] = { "Geek1", "Geek2", "Geek3" };
  
    // print the words
    for (i = 0; i < 3; i++)
        printf("%s\n", array[i]);
  
    return 0;
}
Posted by: Guest on March-01-2022

Browse Popular Code Answers by Language