This doesn't work. Please help.

(line 8: invalid conversion from `const char' to `const char*' )

const char *alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int i=0;
do
{
            new_ptr = (struct node *)malloc(sizeof(struct node)); 
            new_ptr->next = NULL;   
            if (start == NULL) {    
                strcpy(new_ptr->letter, alphabet[i]);
                start = new_ptr;
                current = new_ptr;
            }
            else {      
                strcpy(new_ptr->letter, alphabet[i]);
                current->next = new_ptr;
                current = new_ptr;
            }
            //printf("***%s",*let);
            i++;
            //printf("***%s",*let);
        }while (alphabet[i] != '\0');

Another thread with the same question. Closing.

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.