User Profile

Collapse

Profile Sidebar

Collapse
jayfriend
jayfriend
Last Activity: Feb 24 '07, 10:43 AM
Joined: Dec 28 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jayfriend
    replied to how to print source code from binary
    in C
    The source is included in the printf statements....
    See more | Go to post

    Leave a comment:


  • jayfriend
    started a topic malloc and realloc
    in C

    malloc and realloc

    Hi All,

    Could anyone tell me the difference between memory allocation scheme used by malloc and realloc. I would like to know how realloc reasssigns the memory to a pointer variable. In other words, what will happen if the availabe memory is not contiguous?

    What will be the situation with malloc if the available memory is not contiguous?

    Finally, is the memory allocated by calloc is contiguous always?...
    See more | Go to post

  • jayfriend
    started a topic Swap the file contents
    in C

    Swap the file contents

    Hi All,

    I would like to swap the contents of two large files without using any temporary file. However, a buffer can be used instead of temporary file. I could swap the file contents, but have a problem in deleting the contents of the larger file at the end.

    Please help resolve this problem.

    Thanks in advance.
    See more | Go to post

  • Banfa ,

    Its a simpler solution, Good idea.

    Thanks
    See more | Go to post

    Leave a comment:


  • Hi pallavid ,

    Use dynamic linking....
    See more | Go to post

    Leave a comment:


  • jayfriend
    replied to programming languages
    in C
    Google for 4 generations of programming languages,and you will get it.
    Here is one such link : http://en.wikipedia.or g/wiki/Fifth-generation_prog ramming_languag e

    2) If you would like to know what is exactly structured,unst ructured then u will have to look at couple of books like mastering C++, balaguruswami..

    http://www.answers.com/topic/procedural-language (might be useful)...
    See more | Go to post

    Leave a comment:


  • jayfriend
    replied to please i need your help in this program
    in C
    Could you please paste the class declarations (including member variable and member functions).

    I guess there is a problem in the statment
    person[index]=*teachers[j]; /// what do u want to say

    If u want u can store derived class object in the base class pointer.

    So, it might be a better way to store derived objects in base class array of pointers.

    Hope this would help.
    ...
    See more | Go to post

    Leave a comment:


  • jayfriend
    replied to Strange fgets() behavior
    in C
    Hi ,

    I have modified the program a bit and it worked well, Modified lines are tagged with /<******>/.

    Its a problem with fgets , which appends one extra character at the end.
    I have tested it on MS v studio.


    Thanks,




    char welcome_string[50];
    char file_name_str[256],file_name_actu al[256];
    FILE *file_ptr = NULL;
    char...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...