34. Display array of string by taking from user.


Comments

  1. sayali daunde12:11 PM

    // display array of string
    #include
    #include
    void main()
    {
    char name[3][6]={"skn","scoe","korti"};
    int i=0;

    for(i=0;i<=2;i++)
    {
    printf("\n\t %s",name[i]);
    }
    }

    ReplyDelete
  2. Dipali Kore12:13 PM

    //array of string initialize n display it
    #include
    #include
    void main()
    {
    int i=0;
    char name[3][6]={"skn","scoe","korti"};
    for(i=0;i<=2;i++)
    {
    printf("\n%s",name[i]);
    }
    }

    ReplyDelete
  3. poonam pusavale9:42 AM

    /*array of pointer*/
    #include
    void main()
    {
    char name[3][6]={"skn","scoe","korti"};
    int i=0;
    for(i=0;i<=2;i++)
    {
    printf("\n\t %s",name[i]);
    }
    }

    ReplyDelete
  4. mubin pirjade11:05 AM

    /* PROGRAM TO DISPLAY THE CONTENT OF STRING*/
    # include
    # include
    void main( )
    {
    char str[8]="Welcome";
    int i=0;
    printf("\n Your Entered string is %s",str);
    printf("\n Character stored at each location are:\n");
    for(i=0;i<=6;i++)
    {
    printf("str[%d]=%c\n", i,str[i]);
    }
    }

    ReplyDelete
  5. sachita jadhav11:11 AM

    /*gets &puts function*/
    #include
    #include
    #include
    void main()
    {
    char str[10];
    puts("Enter string");
    gets(str);
    puts("string is:");
    puts(str);
    }

    ReplyDelete
  6. Bhanvase Yashoda11:34 AM

    /*display array of string*/
    #include

    void main()
    {
    char str[3][6]={"skn","scoe","korti"};
    int i;

    for(i=0;i<=2;i++)
    {
    printf("%s",str[i]);

    }
    }

    ReplyDelete
  7. Awate Snehal12:12 PM

    /* display array of string*/
    #include
    #include
    void main()
    {
    char name[3][6]={"skn","scoe","korti"};
    int i=0;

    for(i=0;i<=2;i++)
    {
    printf("\n\t %s",name[i]);
    }
    }

    ReplyDelete

Post a Comment