Search:

Type: Posts; User: Priyank

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,661

    U see the whole point of this construction is...

    U see the whole point of this construction is that........whatever be the size of ur input it doesnt matter since what it does is it reads a singel char at a time and stores it in *str and then...
  2. Replies
    10
    Views
    2,235

    Hey in simple lingo....u cd even try this ... ...

    Hey in simple lingo....u cd even try this ...

    Divide the random no. by 16.....ok get the remainder now if that is gr8r than 8 then the nearest no. is 16*(quotient+1) otherwise the no. is just...
  3. Replies
    8
    Views
    1,661

    getch() returns whatever user enters ...i suppose...

    getch() returns whatever user enters ...i suppose .....and the code which i have used requires no bound checking at all it allows u to enter strings till the time u want to and then hit Ctrl+z to get...
  4. Replies
    9
    Views
    4,762

    Pascals triangle has got nothing do with...

    Pascals triangle has got nothing do with factorials......
    it is something like this:-

    1
    1 2 1
    1 3 3 1
    1 4 6 4 1
    ......

    and it goes on and on......it works on the principle that a numer is...
  5. Replies
    8
    Views
    1,661

    you could read the whole strings by using the...

    you could read the whole strings by using the concept of end of file(eof) character.the character tha ends all char arrays. try this out:


    char *str;

    *str=getch();

    while ( *str++ != eof)...
  6. Replies
    9
    Views
    4,762

    It doesn't work out succesfully

    It doesn't work out succesfully
  7. Replies
    9
    Views
    4,762

    pascal's triangle

    How to create a pascal's triangle using a single dimension array with the last number specified?
Results 1 to 7 of 7