python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Dynamic array inside a linked list in C
I'm writing this post after hours of madness and thinking. Probably this is the most stupid exercise you are gonna read today but for me, after hours of exercise, is not like that.
Going back to the q...
DottorBooom
Votes: 0
Answers: 1
How to store a variable or object on desired memory location?
Let's suppose I have an object of a class as shown below:
Myclass obj;
Now I want to store this object to my desired memory location. How can I do this? Is it possible or not?
I have created an array...
Hassan Ali
Votes: 0
Answers: 5
Malloc or Calloc return unexpected values in string
I am trying to create a dynamic memory allocation string so which returns a string removing all vowels. In the beginning, some of the strings work correctly but suddenly some of them returns with an ...

Raihan_Alam
Votes: 0
Answers: 1
ANSI C - Why malloc and free dont work for char pointers?
When I try to run this code:
char *s;
s = (char *) malloc (15);
s = "hello world";
free(s);
using gcc ts.c -ansi -Wall the result is:
free(): invalid pointer
Aborted (core dumped)
and the ...
alon ohana
Votes: 0
Answers: 1