Many thanks, to both of you.
I understand.
Type: Posts; User: H`eya
Many thanks, to both of you.
I understand.
Thank you for your help
char *quote = "Live long and prosper";
char expression[] = "Illogical";
quote = expression;
Initially quote pointed to read-only memory. When I reassigned the quote to point to expression,...
Appreciate your prompt response.
Allow me to explain further then, since I think I did not give you enough to clarify my concerns.
#include <stdio.h>
#include <stdlib.h>
int main (void )
{...
If I have
char **array = malloc (sizeof *array);
What have I created? What's array pointing to?
If I write
size_t row; /* defined before calling malloc */