I wrote down the source code as below, "a": Override. I reset it several times" There is an error like this. How do I initialize a string multiple times in c language?
int main(void) { char a[10] = "hello"; printf("%s",a); char a= "byebye"; printf("%s", a); }
There is an a variable, so if you define it again, it is an error.
You want to reallocate, right?
Use the strcpy_s function.
strcpy_s(a, 10, "byebye");
547 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
703 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
979 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
549 PHP ssh2_scp_send fails to send files as intended
© 2024 OneMinuteCode. All rights reserved.