User Profile
Collapse
-
The source is included in the printf statements.... -
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?... -
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. -
-
-
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)...Leave a comment:
-
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.
...Leave a comment:
-
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...Leave a comment:
No activity results to display
Show More
Leave a comment: