Search:

Type: Posts; User: gunner4life

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    8,019

    But the point is I will not know whether I have...

    But the point is I will not know whether I have to typecast the pointer to a uint16 or uint32. It is only known at run time. So to implement at element level it would have to be something like this??...
  2. Replies
    21
    Views
    8,019

    Btw its is not necessary that I should access the...

    Btw its is not necessary that I should access the array by the same name as it is declared in.



    uint8 array[2048];

    Something like this would also do.


    void *temp;
  3. Replies
    21
    Views
    8,019

    Firstly my loop counter doesnt depend on bytes in...

    Firstly my loop counter doesnt depend on bytes in the array. Accessing memories (in units of elements and not bytes) which are not filled at init stage is taken care inside the loop.

    Secondly
    p++...
  4. Replies
    21
    Views
    8,019

    I am still not able to know from the replies if i...

    I am still not able to know from the replies if i can actually do such a thing.

    Code:

    typedef <struct>
    {
    ..
    ..
    ..
    uint8 array[2048]
  5. Replies
    21
    Views
    8,019

    My intended useage: while filling up the...

    My intended useage:

    while filling up the array:
    /* init stage*/
    if(some condition)
    retypecast to either 16bit or 32 bit.

    Fill the array. Array element size will not shoot the typecasted...
  6. Replies
    21
    Views
    8,019

    Retypecasting in C

    Hi,
    I am facing a memory problem.

    I have defined an array of size 2048 in a structure, which is of type uint8.

    Now in runtime I want to retypecast the same array into either uint16 or uint32...
  7. Replies
    6
    Views
    1,498

    bounce!!!!

    bounce!!!!
  8. Replies
    6
    Views
    1,498

    sry consider me noob....but i wanted to ask Is...

    sry consider me noob....but i wanted to ask

    Is the order of insertion in the above case top-bottom?? its evident that the tree traversal is top-bottom...
  9. Replies
    6
    Views
    1,498

    thnks a lot for the explanation. one more...

    thnks a lot for the explanation.

    one more doubt...does recursion in a binary search tree lead to top-bottom or bottom - top traversal, or can it be both ??
  10. Replies
    6
    Views
    1,498

    doubling tree

    Hi,
    I would really appreciate any help on this.

    Doubling tree is a problem where a duplicate node is inserted as a left child for each node in a binary search tree.

    This code works:


    void...
Results 1 to 10 of 10