Search:

Type: Posts; User: gaurav_13191

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,132

    Thanks for the detailed reply anduril462, surely...

    Thanks for the detailed reply anduril462, surely helped a lot to get things clear.
  2. Replies
    4
    Views
    1,132

    Cannot understand the output.

    I was browsing through some output questions in C language, where I found the following one.



    #include<stdio.h>

    int main()
    {
    char arr[] = "geeksforgeeks";
    char *ptr = arr;
  3. Replies
    2
    Views
    1,650

    LCS Problem

    I was studying lcs problem from Cormen. Though I get the sub-problem structure for this problem, what I don't get is how the number of sub-problems are calculated. For 2 sequences X (1... m) and Y...
  4. Replies
    1
    Views
    3,704

    Space Complexity of Radix Sort

    I was just going through Radix Sort algorithm. Though I got the logic and the concept used in it, I am still pretty much confused about the space complexity being O(k+n) for this algorithm. (where, k...
  5. Replies
    2
    Views
    1,643

    I can't even tell you what the mistake was, such...

    I can't even tell you what the mistake was, such a silly mistake :( , I accidentally made a WinMain project so it was expecting a WinMain function instead of int main, it runs easily now, wasted...
  6. Replies
    2
    Views
    1,643

    Problem running recursive program!

    I am trying to run the recursive program for the rod cutting problem. My code compiles but fails to build. I am using MS Visual Studio 2010, here's the code:



    #include<stdio.h>...
  7. Replies
    4
    Views
    1,720

    Ok.. thanks for the reply..

    Ok.. thanks for the reply..
  8. Replies
    4
    Views
    1,720

    I know I should write it myself but the problem...

    I know I should write it myself but the problem is that when I don't understand how the above recursion works, I don't think I would be able to write it myself. I know what the above code is trying...
  9. Replies
    4
    Views
    1,720

    Linked list reverse recursively

    Hi, I am trying to reverse a linked list recursively. But the problem is that I am not able to understand the code.
    Here's the code:



    void recursiveReverse(struct node** head_ref)
    {
    ...
  10. Replies
    7
    Views
    2,239

    @commontater Ok.. I got it .. thanks! :)

    @commontater Ok.. I got it .. thanks! :)
  11. Replies
    7
    Views
    2,239

    @commontater You mean that formal parameters are...

    @commontater You mean that formal parameters are not destroyed when the function returns? Please clarify.

    @others Thanks for your replies. What I understood is that though head will be destroyed...
  12. Replies
    7
    Views
    2,239

    update head pointer in linked list

    Hi, I have a slight confusion about the function for updating head pointer of a linked list.

    Here is the code:



    struct node *deleteFirst(struct node *head)
    {
    if(head != NULL)
    {
  13. Thanks for answering.. it seems that I will have...

    Thanks for answering.. it seems that I will have to rewrite a lot of my code.
  14. Set Keyboard Focus to a non child control

    Hi, I am stuck in a problem where I have to set keyboard focus on a rectangle ( means I should get WM_KEYDOWN and WM_KEYUP when I press the key). You can think of it as the keyboard handling we get...
  15. Replies
    2
    Views
    2,426

    Well, thanks a lot. But I failed to mention that...

    Well, thanks a lot. But I failed to mention that I am using pure 'C' for my project. It seems that I will have to think something else. Thanks, anyway :)
  16. Replies
    2
    Views
    2,426

    Week Selection from Date Time Picker

    Hi, I am using date time picker in my project in which I need to select weeks from this control (just like weeks are selected in the top leftmost calendar and the corresponding dates are displayed in...
  17. Replies
    2
    Views
    2,119

    Thanks for your answer.. this was horrible for me...

    Thanks for your answer.. this was horrible for me too and so I did it wrong.
  18. Replies
    2
    Views
    2,119

    C output help!

    The following question appeared in my written exam for Morgan Stanley. Can anyone explain the output. Here's the code:



    #include<stdio.h>
    #define prn(a) printf("%d ",a)
    #define print(a,b,c)...
  19. Replies
    7
    Views
    1,536

    I resolved the issue.. no need to answer.. thanks...

    I resolved the issue.. no need to answer.. thanks for all the answers.. :D :)
  20. Replies
    7
    Views
    1,536

    Ok I solved the above problem of inserting text.....

    Ok I solved the above problem of inserting text.. but I have got another issue that I am unable to position the caret at the end position after updating my edit control text. It positions itself at...
  21. Replies
    7
    Views
    1,536

    @Commontater I got your point, but can't I...

    @Commontater
    I got your point, but can't I insert spaces using code?, like on press of a button, the caret should move ahead as if the user manually entered the space. Is it difficult to implement...
  22. Replies
    7
    Views
    1,536

    caret repositions itself

    I am trying to manipulate caret position in an edit control using Winapi SetCaretPos() function. When the user clicks on a button, the caret in the edit box advances a certain number of pixels...
  23. Replies
    4
    Views
    1,998

    data structures book!

    Can anyone suggest some good books for data structures in C (I want implementation too). I have already read Lipschutz data structures book but I want implementation too. One of my colleagues...
  24. Replies
    8
    Views
    15,443

    Yes, I debugged the program and choice variable...

    Yes, I debugged the program and choice variable contained ASCII 10(Linefeed) that caused the program to produce mysterious results.
  25. Replies
    8
    Views
    15,443

    Thanks for the suggestion, you are right, the...

    Thanks for the suggestion, you are right, the choice variable was taking newline as the input and continuing the execution without user input. So i flushed the input buffer and now the program works...
Results 1 to 25 of 59
Page 1 of 3 1 2 3