*store pointer content someway*
free(pointer)
malloc(new size)
*copy pointer content in new memory*
}
Please format the code you posted, by wrapping it in triple backticks. -> `
Possibly
But real reallocation is rarely used
try catch
Обсуждают сегодня