I allocate memory
int *A; A = (int*)malloc(strlen(Text) *sizeof(int)); The debugger shows that the text is and the length of the text is rather big, only memory is allocated only for 1 element. Why is it and how to fix it? 
I allocate memory
int *A; A = (int*)malloc(strlen(Text) *sizeof(int)); The debugger shows that the text is and the length of the text is rather big, only memory is allocated only for 1 element. Why is it and how to fix it? 
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
Source: https://ru.stackoverflow.com/questions/813542/
All Articles
-842150451). Sinceint*can be both an array and a pointer to a single number, the debugger always thinks that it is a pointer to one int and shows you its address and number — vegorov