Search:

Type: Posts; User: WarDoGG

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,384

    question about const pointers and const ints

    I was just browsing through a few C exercises, came across this:

    The following code:


    void main()
    {
    int const * p=5;
    printf("%d",++(*p));
    }
  2. Replies
    5
    Views
    2,846

    Thanks a lot for the help.

    Thanks a lot for the help.
  3. Replies
    5
    Views
    2,846

    Thats not homework.. I asked these questions...

    Thats not homework.. I asked these questions because i have no clue as to what the answer is. If i knew so, i wouldnt be asking.

    But then, to elaborate on them more..

    1. Can a pointer be...
  4. Replies
    5
    Views
    2,846

    Some basic C questions

    I was going through a few C quizzes and was quite baffled by the amount of questions i could answer correctly. Never thought C was such a confusing language !

    Well, anyway... here are some doubts...
  5. Replies
    3
    Views
    1,094

    Algorithms (big-Oh)

    I have absolutely no clue as to how it works, but i cant seem to find any resources to learn basics about O(log n) O(n) etc.. etc...

    Anybody care to help ?
  6. Replies
    7
    Views
    2,887

    Well. thanks a ton ! All those explanations...

    Well. thanks a ton !

    All those explanations really helped. Thanks again.
  7. Replies
    7
    Views
    2,887

    Is this allowed ? I thought it isnt. What is...

    Is this allowed ? I thought it isnt.

    What is the difference between *start and *p ???

    Im asking this because :

    we create *p by :


    struct node *p = malloc(sizeof(node));
  8. Replies
    7
    Views
    2,887

    Well, that creates another problem for me. So,...

    Well, that creates another problem for me.

    So, p points to currently allocated node struct memory.
    Suppose that memory is 1776.

    If the start pointer of linked list is *start pointing to first...
  9. Replies
    7
    Views
    2,887

    Data structures basic questions

    I was starting out with data structures, but had these few doubts:


    struct node {
    int x;
    node *next;
    };

    Now, If we have a pointer *p such that
  10. Replies
    4
    Views
    1,642

    lol, that cracked me up. Well, your...

    lol, that cracked me up.

    Well, your explanation helped ! Thanks a ton !
  11. Replies
    4
    Views
    1,642

    Is there anything wrong with this :

    Is there anything wrong with this :
  12. Replies
    4
    Views
    1,642

    Passing address to a function, Problems !

    I was trying to pass addresses of 2 variables to a function, but compiler is giving me an error.


    add(&array1,&num2);

    Anything wrong with the above code ?

    Error is :
  13. Replies
    1
    Views
    1,080

    what is meant by -> ??

    forgive me for such a n00b question but I have seen this symbol quite alot of times studying data structures n stuff... just didnt find the proper reference anywhere.

    what does " -> " mean ?? can...
Results 1 to 13 of 13