hi im a cs student. i need some advice from people who have enough experience in Embedded Software. I need to know whether this profession is suitable for me. I have watched s...
Hi I have a question about stat modes. How come stat mode of the logfile.txt is the same as the file0.py ? Because I can do os.unlink("file0.py"), but when I do os.unlink("lo...
Hi In Geeks for Geeks website i read : "SRAM has greater storage than DRAM ... SRAM has less memory capacity." what does the word storage refer to? I'm confused by these wor...
How to make my cmd understand that "A B.txt" is a file ? It assumes I want to access the file with name "A". Like when I write "start A B.txt"
Hi How can I use DELETE function (from request module) to delete something in my GitHub repo ? I get 403 errno by doing that
Hi Can I modify the raw data of an audio file without touching its metadata or any other data ? Probably using pydub or something?
Hi. What should I call such files with no format ? Windows identifies their types as "File". What should I write in the google so it understands what I mean and finds related ...
Hey there. Does arithmetic operations on iterators work in O(n) ? Example: std::vector<int>::iterator it = v.begin(); it += 6; Is "it += 6;" done in O(n) or constant time ?
obj& obj::operator=(const obj& other) { data.clear(); for (auto row_it = other.data.begin(); row_it != other.data.end(); ++row_it) { // code } } Is ...
Hi Is Object Design Style Guide by Matthias Noback a good and must-read book for learning object oriented programming principles ?
Can doing this result in any UB or segmentation fault ? delete ptr2; if (ptr1 == ptr2) // some code Because after deleting ptr2, it will be still holding its address.
Hey guys When returning a ptr from a function, in some cases, the ptr MUST be static or allocated on the heap (without getting deleted too early) to successfully return and u...
Hey there. Does this piece of code cause any UB when accessing M[0] in the if condition ? (because there's no such a key priorly) std::map<int, int> M; if(M[0]) { ++M[0]...
Hi there Does deleting the 'instance' on line 24 result in deleting all data in the 'func' function (including 'output' and also static 'x') ?
Hey Can I copy a segment of a pointer to another in any way? Example: int* ptr = (int*)malloc(10 * sizeof(int)); *(ptr + 0) = 23; *(ptr + 4) = 38; *(ptr + 9) = 9...
Guys Is it necessary to assign a nullptr to a pointer (that points to an object that's allocated on the heap) after deleting that ? Like: delete ptr: ptr = nullptr; // if ne...
Can you check whether I've understood assert() correctly? For example: if (x < 0) { std::cerr << "error message"; std::exit(1); } assert(x >= 0 && "error message");...
Hi I'm implementing vector, and I'd like to know if I can implement this operator: vec[0] = 5; I mean, I know how to overload the bracket operator and also assignment opera...
Hey there. Why std::cout can be used in header files without including iostream header🤔?
Is the dtor called but just actually not displayed on the console ? (when throwing an exception)