string intro

 #include<stdio.h>


int main(){

    // char str[] = "Harry";

    char str[] = {'S', 'a', 'y', 'a', 'n', '\0'};

    char *ptr = str;

    while(*ptr!='\0'){

        printf("%c", *ptr);

        ptr++;

    }

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings