Search:

Type: Posts; User: C_Enthusiast

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,359

    I am referring to this statement

    I am referring to this statement
  2. Replies
    11
    Views
    1,359

    Ok I got my mistake as f and g are global...

    Ok I got my mistake as f and g are global arrays...
    But I want to know that is my statement correct if they would have been defined in main function as then memory will be assigned to them in stack...
  3. Replies
    11
    Views
    1,359

    C has no bound checking... So this is valid as f...

    C has no bound checking... So this is valid as f and g are allocated memory continuously with f below g...

    So f[5] is valid...

    Hope this helps...
  4. Replies
    6
    Views
    4,219

    To declare array of pointers use calloc...

    To declare array of pointers use calloc function...


    char **s=(char**)calloc(size of array,sizeof(char*))

    Now doing

    s[i] =(char *)malloc(10 * sizeof(char));
    will be valid...
  5. Replies
    3
    Views
    1,063

    This shows initialization with null character...

    This shows initialization with null character...
  6. Replies
    2
    Views
    1,372

    what is the output of this code

    Hi all,


    #include<stdio.h>

    int main()
    {
    char p[]="hello";

    printf("sizeof(p)=%d\n",sizeof(p));
  7. Replies
    0
    Views
    1,503

    Applications of Minimum Spanning Trees

    Hi all,

    I want to know the about the practical applications of minimum spanning trees ???
    Please help

    Regards
    C_Enthusiast
  8. how to select span sequence in shell sort

    Hi all,

    I want to know that how one can make a good selection of span sequence in shell sort...????

    Please help...

    Regards
    C_Enthusiast
  9. Replies
    17
    Views
    6,217

    please help....

    please help....
  10. Replies
    2
    Views
    21,245

    giove is right... That will work

    giove is right... That will work
  11. Replies
    18
    Views
    2,898

    hi Niels_M, Its because the name of the 2*2...

    hi Niels_M,

    Its because the name of the 2*2 matrix intarr is a pointer to an array of two pointers each of which point to a row of the matrix.....

    So that is why you have to inform the...
  12. Replies
    17
    Views
    6,217

    Hi all, Nothing better that this I can...

    Hi all,

    Nothing better that this I can provide... This shows a linked list and the corresponding tree representation in which the internal nodes contain the number of linked list nodes present to...
  13. Replies
    17
    Views
    6,217

    I am still here.... I cannot provide any...

    I am still here....
    I cannot provide any pictures butt his idea of representing list using trees is given in book data structures using c and c++ by tenanbaum... page number 308 section 5.4

    I am...
  14. Replies
    17
    Views
    6,217

    The above code is just to create a binary tree......

    The above code is just to create a binary tree... I want to create a tree in which external nodes represents linked list nodes and internal nodes contain the count of linked list nodes to their left...
  15. Replies
    17
    Views
    6,217

    I want inorder taversal... Kindly tell the...

    I want inorder taversal... Kindly tell the technique not the structure for nodes..
    Thanks in advance
  16. Replies
    17
    Views
    6,217

    How to represent list using trees

    Hi all,

    Can someone help in devicing an efficient method for building a tree for representing a list as list represented using trees take less time to traverse and delete...

    Thanks in advance
    ...
  17. Replies
    15
    Views
    4,850

    Hi all, I wrote the following code to add two...

    Hi all,

    I wrote the following code to add two very long positive integers... Numbers are stored in doubly linked list....But it gives segmentation fault... Can someone please check it and help.......
  18. Replies
    15
    Views
    4,850

    Hi all, Now one more error I am getting... ...

    Hi all,

    Now one more error I am getting...


    #include<stdio.h>

    int main()
    {
    char str[20];
  19. Replies
    15
    Views
    4,850

    Hi iMalc, Well thanks for testing me also.......

    Hi iMalc,

    Well thanks for testing me also....

    p is a constant pointer and once made to point somewhere it cannot be made to point to any other location... But certainly p can change he contents...
  20. Replies
    15
    Views
    4,850

    The thread is to long and shook my head.... But...

    The thread is to long and shook my head.... But it was really helpful... Thanks



    Ok so I got why gets() is bad...

    But I want to know that is using getline() for accepting accepting strings...
  21. Replies
    15
    Views
    4,850

    gets function

    Hi all,

    Thanks for clearing my doubts about the previous questions...... I am grateful to all of you...

    Now I am using gets() functions to accept a string but the gcc compiler reports the...
  22. Replies
    2
    Views
    8,448

    Applications of priority queues

    Hi all,

    Please help me understanding the applications of priority queues as I am new to the subject od data structures....

    Thanks in advance

    Regards
    C_Enthusiast
Results 1 to 22 of 22