What will be happened if I change big_len to -> UINT_MAX - 1 and little_len to UINT_MAX - 2? Still safe? Not. If you're supporting API or functionality to users, you have to g...
Why do you want to compile it with the latest GCC version?
What will be happened in this case? char temp_str[]=“This is test string”; mxme(temp_str, UINT_MAX - 1, “”, UINT_MAX - 2);
0 - There is no one standard function call for dynamic memory allocation. If I want to use calloc, I use and want to delete it from your machine, it is your decision. 1 - Tel...
Also for section 4, as far as I know there should be just warning about capturing "this". Is it possible to happen your codes will compile with "Werror" flags?
Sorry but this is not right. If this is useless at the end of main, why gc is implemented by high-level languages? It is special implementation on C++ or other languages which...
https://gcc.godbolt.org/z/cJ2dZP Then why in this example, both of string literals are not located into rodata? I mean, if it is rodata "hello" is of course because can be re...
What do you think? Before assigning string literals to another left value, they are located in .data section and their address or values are not changed. However, when you ass...
Of course, everyone has important questions (not important for everyone) but people have to learn how to ask questions. Your question does not make sense because even out of c...
No, in the end I should have one file. So, does it matter to create object file for every cpp file? I have almost 30k cpp file in my project. And almost 10 different target wi...
I am little bit confused. You’ve already static mess_msg_dispatch_free function to deallocate memory which cannot be called outside of file. But after init function done succe...
And ask right questions to management, what is the most important feature on this product? Want to be first in the market? Then do not expect good quality from me. Such things...
Here is the list that you need to improve: - There are too many memory leaks on your implementation. Please use smart pointers instead of raw one. - Secondly, why all elements...
Do you have any knowledge about ASLR, MMU, Threads, rings? If you do not have, please read carefully other resources like Linux kernel books etc. and if you think that you are...
Why do you have these names and what do you wanna print out? So, due to input that you take from user, you print names in the screen. But there is no logic behind yes or no.
Nice feature but I do not understand does it make my all functions async? How does it decide that my function is async or not?
Why it should give? There is no access violation in here because in printf, you are just calculating start address of i + 10. If you want to access value of this address, it m...
Is that what you mean? http://www.cs.technion.ac.il/users/yechiel/c++-faq/static-init-order-on-intrinsics.html
Does it make sense to you? How do you sort things without any conditional criteria? Meaningless.
How to be sure that your C code is compiled and produced right assembly code? How do you know that it is optimized as you expected? Do you also open assembly code and check ev...