#include <stdio.h>
#include<stdlib.h> 

#if 0
int main() {//string input
    char *a;
    a=(char*)malloc(sizeof(char));
    scanf("%s",a);
    printf("%s",a);
    free(a);
}

int main(){
    char *str;//line input
    str=(char*)malloc(sizeof(char)*30);//30 is max
    fgets(str,10,stdin);
    printf("\nline input string is : %s",str);
    return 0;
}//line input string is : hi my nam

#endif

int main()
{  
   char *s = "Hello my name is adarsh";
   printf("%c\n", *s);
   printf("%ld\n",sizeof(s));
   while(*s)
   {
      printf("%c", *s++);
   }
}//HHello

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: