#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(){
char name[80];
char *searchptr;
int i, t;
for(i=1; name[i]!=EOF; i++){
printf( "Enter name\n");
scanf("%s", &name[i]);
}
for(t=i; t<=0; t--){
printf(" name[%d] == %s", i, name[t]);
getch();
return 0;
}}
romaineo 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.