29. Display content of string character by charatcter.


Comments

  1. #include
    #include
    void main()
    {
    char str[8]="sknscoe";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("str[%d]=%c\n",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  2. #include
    #include
    void main()
    {
    char str[8]="krishna";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("\n\t str[%d]=%c",i,str[i]);

    i++;
    }
    }

    ReplyDelete
  3. poonam pusavale11:35 AM

    /*display the character of string*/
    #include
    void main()
    {
    char s[10];
    int i=0;
    printf("\n\t enter a string");
    gets(s);
    while(s[i]!=NULL)
    {
    printf("\n\t s[%d]=%c",i,s[i]);
    i++;
    }
    }

    ReplyDelete
  4. Swati Waghmare11:36 AM

    /*Display content of string*/
    #include
    #include
    void main()
    {
    char s[8]="SKNSCOE";
    int i=0;
    while(s[i]!=NULL)
    {
    printf("\n\ts[%d]=%c",i,s[i]);
    i++;
    }
    }

    ReplyDelete
  5. Pandhare Dipali11:36 AM

    /*display the string by character to character*/
    #include
    #include
    void main()
    {
    char s[8]="SKNSCOE";
    int i=0;
    while(s[i]!=NULL)
    {
    printf("\n\t s[%d]=%c",i,s[i]);
    i++;
    }
    }

    ReplyDelete
  6. sayali daunde11:45 AM

    //display the content of string charecter by charecter
    #include
    #include
    void main()
    {
    char str[8]="sknscoe";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("str[%d]=%c\n",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  7. Dipali Kore11:47 AM

    //initialization n display its content
    #include
    #include
    void main()
    {
    char str[10]="sknscoep";
    int i=0;

    while(str[i]!=NULL)
    {
    printf("\nstr[%d]=%c",i,str[i]);

    i++;
    }

    ReplyDelete
  8. sonali nagane11:47 AM

    #include
    #include
    void main()
    {
    char str[8]="sknscoe";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("\nstr[%d]=%c",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  9. yogesh mane11:52 AM

    #include
    #include
    void main()
    {
    char str[8]="sknscoe";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("str[%d]=%c\n",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  10. Bhanvase Yashoda12:19 PM

    /*gets(),put(s)*/
    #include
    #include
    #include
    void main()
    {
    char str[10];
    printf("\n\t enter the string");
    gets(str);
    printf("Your college name is");
    puts(str);
    }

    ReplyDelete
  11. Bhosale Dhanashri SE312:22 PM

    #include
    #include

    void main()
    {
    char str[8]="sknscoe";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("str[%d]=%c\n",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  12. mubin pirjade10:57 AM

    /*Display string character by character*/
    #include
    void main()
    {
    char str[]="WELCOME";
    int i=0;
    while(str[i]!=NULL)
    {
    printf("\n\tstr[%d]=%c",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  13. puja khandare11:08 AM

    #include
    void main()
    {
    char str[8]="sknscoe";
    int i=0;
    while (str[i]!=NULL)
    {
    printf("str[%d]=%c\n",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  14. sachita jadhav11:19 AM

    /* inilization & display string */
    #include
    #include
    #include
    void main()
    {
    char str[10]="sknscoe";
    int i=0;
    while(str[i]!=NULL)
    {
    printf("\nstr[%d]=%c",i,str[i]);
    i++;
    }
    }

    ReplyDelete
  15. Awate Snehal11:36 AM

    #include
    #include
    void main()
    {
    FILE *fp;
    char str[10];
    fp=fopen("abc.txt","a");
    if(fp==NULL)
    {
    printf("can't open a file");
    exit(1);
    }
    printf("\n\t enter a string");
    scanf("%s",str);

    fputs(str,fp);

    fclose(fp);
    }

    ReplyDelete

Post a Comment