Search:

Type: Posts; User: std10093

Search: Search took 0.02 seconds.

  1. Replies
    29
    Views
    3,144

    Don't forget to inform us :D

    Don't forget to inform us :D
  2. Replies
    29
    Views
    3,144

    Oh, that's why it didn't feel right when I was...

    Oh, that's why it didn't feel right when I was typing it.. Thanks for the correction! And SHD thanks too I guess :)
  3. Replies
    29
    Views
    3,144

    Oh, ok then :)

    Oh, ok then :)
  4. Replies
    29
    Views
    3,144

    But array is of char type!!!! In C, you can not...

    But array is of char type!!!! In C, you can not index an array with a letter!

    I said my opinion about the approach.
  5. Replies
    29
    Views
    3,144

    But you know what? I actually don't like this...

    But you know what? I actually don't like this approach.

    Think about the problem. You need for every piece of data a corresponding counter. It's a one to one assignment (I don't know if that makes...
  6. Replies
    29
    Views
    3,144

    Partially yes :) As said, main has to return...

    Partially yes :)

    As said, main has to return int.

    Now, I asked before, what this line does?


    count1[array[i]]++;

    and I say again! array is of char type, so you are indexing an array...
  7. Replies
    29
    Views
    3,144

    Well, I hope you read my last post. Post the...

    Well, I hope you read my last post. Post the updated code
  8. Replies
    29
    Views
    3,144

    Change main to return int as you nicely had...

    Change main to return int as you nicely had before:)

    i is a counter, thus it has to be an integer ;)

    this
    printf("Enter %d numbers\n", n); should be this
    printf("Enter %d characters\n", n);...
  9. Replies
    29
    Views
    3,144

    while the code is shouldn't we say count[0] to...

    while the code is

    shouldn't we say count[0] to count[99]?
    Or maybe I am mistaken :)

    //SHD didn't do fortunately the same mistake :)
Results 1 to 9 of 9