I'm writing an API that has structs such as I'm providing functions which free the contents of such structs (in a similar fashion to what C++ destr ...
I'm writing an API that has structs such as I'm providing functions which free the contents of such structs (in a similar fashion to what C++ destr ...
What happens with intAge after you run func()? Do you have to deallocate it, or does the C++ compiler do this? ...
In a C99 program, under the (theoretical) assumption that I'm not using variable-length arrays, and each of my automatic variables can only exist once ...
Supose this C code: We have a vector which is in the stack space, but we don't know the size of the vector until the execution time (until the user ...
I am currently on a demographic project. I have data from 3 different countries and their birth statistics in each month. My question: I want to calc ...
Consider the following snippet: Obviously it would crash on most of platforms, because the default stack size is usually less than 20MB. Now consi ...
Assume I have a structure like this in a C program: Will I save some amount of memory if I instead write ? The variable i is not needed outside ...
I have a Debian server and I wish to "save" some files automatically and send them automatically to a googledrive. this automatic task must be done re ...
Some of this may be a duplicate, but I am sorry for that. Let's say I have this struct: 1. If struct foo type object is declared in the way that it ...
I'm currently studying variable length array and automatic storage. I have the following code that allocate memory for an variable length array myAr ...
I have a C++ class for which I only ever want it to be instantiated on the stack. I am using an api to access content that was developed in another (i ...
Code stack.h: main.cpp: Remark Most of main() is probably irrelevant, but I just want to show what I'm doing. push() and pop() are the impor ...
(The answer to my question involves copy constructors, but the copy takes place upon return from a function, not within a method call to another class ...
I have code similar to the following in our product. According to me, the output is '0 1 2 3'. But the output of the similar code is '1 1 1 1'. My ...
I want to know How to retrive date automatically by an Android app in Android Studio through a button. ...
I've seen that Android automatically generates a thumbnail when taking a photo, and saves it as an extra with the key "data". Is it possible to disabl ...
As far as my knowledge on resource management goes, allocating something on the heap (operator new) should always be slower than allocating on the sta ...
Will mongoDb automatically store the date and time for each CRUD operations? If yes how can i see that using java code ? ...
Automatic Storage used in a function does not re-initialize the i variable declared using the auto keyword. Practice.c : main() and func() ...
i have this scenario: Oracle 11g with ASM. Some days ago the disk where there were system's tablespace datafiles got broken and there is no way to r ...