Home TechnologyProgrammingC++ Subscribe to RSS

Are There Any Usefil Tips On Arrays For C++ ?

Answer Question

1 Answer - Sort by: Date | Rating

    Arrays is a collection of characters which is used in so many
    programming languages including c++
    for ex in c++

    private class classname
    {
    char name[10];
    // if you give like that  you can able to give

    10 characters means it will start from zero and last one is for null

    0 1 2 3 4 5 6 7 8 9
                              
    9 is for null

    so we can enter 9 characters

    if you want to enter 10 characters you will have to give 11 as a array
    11 characters  ---------------12 as a array

    now i hope you understood
    0 0

    Manoj_123 

    answered 3 years ago

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International