just want to ask if this is an array program????...
my professor told us to make array program that displays 10 names..
my professor tells us that we can use C or C++ program..
i prefer using C cause im much familiar with C programs...
Output:
fdgdfg
dfgdfg
dfgdfg
dfgdfg
dfgdfgd
dfgdfg
dfgdfgd
dfgdfgd
dfgdgdf
dfgdfg
this is what i did:
#include<stdio.h>
#include<conio.h>
#include<string.h>
char names[10];
int n;
void main()
{
clrscr();
printf("Input 10 Names:\n");
for(n=0;n<10;n++){
scanf("%s",n);}
getch();
}
the program produces output which i inputed.
i think its ok..
but im not sure if this is an Array program..
i think i just use the basic C program...
and also, i think i had just used for loop and nothing else...
do you think i just used a simple C program that display names without having any for loops or Arrays???...
please help me.. im confuse...