Search:

Type: Posts; User: anoopks

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. lol yes, that would be the physical limit and in...

    lol yes, that would be the physical limit and in real world perhaps not many end users would like to match that limit.

    Anoop.
  2. Porting from 32 bit machine to 64 bit machine!

    Hi,
    First of all apologies if this is not the right forum.

    This is a first of its kind for me. There is an existing 32 bit C application that needs to be ported to a 64 bit machine. Now...
  3. Replies
    13
    Views
    2,979

    Thanks a lot :)

    Thanks a lot :)
  4. Replies
    13
    Views
    2,979

    :) That was a reply to SMurf who wanted t o know...

    :) That was a reply to SMurf who wanted t o know what exactly I had meant by that. As I said, I would try out Nyda's code. I did. Now I am hunting for resources on the net on those functions,...
  5. Replies
    13
    Views
    2,979

    Thanks a lot. I wanted to know how is main()...

    Thanks a lot.

    I wanted to know how is main() called by the compiler. I guess I should have mentioned the OS I am using. Fedore Core 2. I will try the piece of code Nyda has given. Thanks a lot for...
  6. Replies
    13
    Views
    2,979

    How is main() called?

    Hi,
    Was wondering how to locate resources on the net that tell me the internals of C, how the main() is called? I tried googling with "C internals", "how main() is called" and the like but in...
  7. take a bow. And the queue one is really...

    take a bow.

    And the queue one is really elegant.

    Let me find out which guy interviewed my friend and make sure he interviews me if I indeed apply in that company. ;>)

    Thanks,
    Anoop
  8. yep. Good one. Thanks, Anoop

    yep. Good one.

    Thanks,
    Anoop
  9. >>I think you may be missing a requirement....

    >>I think you may be missing a requirement. Single linked lists cannot be travered backward unless a forward traversal has already been stacked explicitly or with recursion.

    Thats precisely the...
  10. Nope. But just thinking, ummmm would it...

    Nope.

    But just thinking, ummmm would it matter? Anyway you can go only in the forward direction and whether you come to the end of the list by testing if

    tmp-> next == NULL or ...
  11. finding an element in a linked list from the end.

    One of my friends was asked the following question in an interview, just a couple of days back.

    Given a single linked list, how can you find out the nth element, from the end, while traversing...
  12. Replies
    3
    Views
    1,155

    >I think you read the code wrong. My copy shows...

    >I think you read the code wrong. My copy shows "N--;" inside of the last loop:

    Precisely. I am also refering to the same statement. I am unable to comprehend the need for N--;

    Anoop.
  13. Replies
    3
    Views
    1,155

    Is Sedgewick's a good book to follow?

    I am sorry, if this is a wrong question in this forum.

    It has been quite a while since I have coded in C and last week, I decided to finish atleast one Algo book cover to cover(or atleast try),...
  14. Okie that ";" obviously was a typo. Sorry for...

    Okie that ";" obviously was a typo. Sorry for that.

    As tzuchan has pointed out, it exists in C.

    Now, defining N might not work since the compiler would look for
    #define TOKEN VALUE
    and...
  15. Factrorial using conditonal operator in a macro?

    Can I find the factorial of a number using conditional operator in a macro definition?

    #define fact(n) ( n == 0 ? 1 ; (n*(fact(n-1) ) ) )

    since recursive definition is not allowed in macros,...
  16. Thread: need help here

    by anoopks
    Replies
    5
    Views
    950

    Suddenly my english has become worse from bad. ...

    Suddenly my english has become worse from bad.


    >>>>is it possible to open another source code as a program with the current source code you are editting?

    I did not understand the question.
    ...
  17. Replies
    3
    Views
    1,111

    You can use strtok() for the same. Look up the...

    You can use strtok() for the same. Look up the man pages.

    Anoop.
  18. Replies
    9
    Views
    1,045

    A standard practice in such cases is using 'enum'...

    A standard practice in such cases is using 'enum' 's. You can look up for it in any book or google.

    Anoop.
  19. Thread: quick question

    by anoopks
    Replies
    13
    Views
    1,347

    What compiler you are using? I am not sure if...

    What compiler you are using? I am not sure if system() command works on microsoft platforms. And from "copy" it looks like microsoft platform. Anyways, its a very expensive command.

    Instead you...
  20. >>>>It may be that printf doesn't recognize your...

    >>>>It may be that printf doesn't recognize your data type as an integer.

    If its typedef'ed, I dont think it should be a problem. But thats only a guess. Could you post the entire/relevant code...
  21. Replies
    8
    Views
    1,326

    If you know the size, which I am sure, you wont,...

    If you know the size, which I am sure, you wont, you could have declared a double array.

    however you can either declare char **str; and simulate it or you can declare a linked list.


    A little...
  22. Replies
    8
    Views
    1,326

    >>how do i initialize a char array, so i'll be...

    >>how do i initialize a char array, so i'll be able to put words in it at a runtime?

    Do you want to initialize it or do you want to take it at run time? If you initialize it, you will fix the size...
  23. Thread: C vs ASM

    by anoopks
    Replies
    15
    Views
    3,481

    >>>well then let me see you convert a 10000 line...

    >>>well then let me see you convert a 10000 line C++/C program to ASM and let me see how effeciently it will run.. obviously you can not convert all that in an optimized manner..


    He never said...
  24. Can you post your code? Anoop.

    Can you post your code?

    Anoop.
  25. Replies
    12
    Views
    938

    >>>PS: If there are any glaring errors or just...

    >>>PS: If there are any glaring errors or just bad practices in my code, I be grateful if someone would let me know.


    Just that it would be nice to do away with as many global variables as...
Results 1 to 25 of 57
Page 1 of 3 1 2 3