This simple program crash when I compile and run it on Windows with Visual C++:  #include &lt;stdio.h&gt;  void foo() {     printf("function begin\n");     int n[1000000];     for(long int i = 0; i &lt; 1000000; i++)     {         n[i] = 2;     }     printf("function end\n"); } int main() {     printf("hello\n");     foo();     printf("end of the program\n"); }   I compile with cl bug.c.  In this case, the console only displays:  C:\Users\senss\Desktop&gt;bug hello   However, when I change the 1 000 000 value to 100 000, there is no problem :  C:\Users\senss\Desktop&gt;bug hello function begin function end end of the program   Thank you!
The following code is generating a stack overflow error for me  int main(int argc, char* argv[]) {     int sieve[2000000];     return 0; }   How do I get around this? I am using Turbo C++ but would like to keep my code in C  EDIT:  Thanks for the advice.  The code above was only for example, I actually declare the array in a function and not in sub main.  Also, I needed the array to be initialized to zeros, so when I googled malloc, I discovered that calloc was perfect for my purposes.  Malloc/calloc also has the advantage over allocating on the stack of allowing me to declare the size using a variable.
Custom Tools not Saving in Toolbar on Startup/ Normal.mxt? When should we consider a dataset as imbalanced? I'm facing a situation where the numbers of positive and negative examples in a dataset are imbalanced.  My question is, are there any rules of thumb that tell us when we should subsample the large category in order to force some kind of balancing in the dataset.  Examples:   If the number of positive examples is 1,000 and the number of negative examples is 10,000, should I go for training my classifier on the full dataset or I should subsample the negative examples? The same question for 1,000 positive example and 100,000 negative. The same question for 10,000 positive and 1,000 negative. etc... I have an independent variable called "quality"; this variable has 3 modalities of response (bad quality; medium quality; high quality). I want to introduce this independent variable into my multiple linear regression. When I have a binary independent variable (dummy variable, I can code 0 / 1) it is easy to introduce it into a multiple linear regression model.  But with 3 modalities of response, I have tried to code this variable like this :  Bad quality      Medium quality      High quality       0                1                  0      1                0                  0      0                0                  1      0                1                  0   But there is a problem when I try to do my multiple linear regression: the modality Medium quality gives me NA:    Coefficients: (1 not defined because of singularities)    How can I code this variable "quality" with 3 modalities? Do I have to create a variable as a factor (factor in R) but then can I introduce this factor in a multiple linear regression? What do you call somebody who asks a question and somebody who answers a question? What do you call somebody who asks a question and somebody who answers a question?  I have exhausted the thesaurus with no real luck... any ideas?  EDIT: It is in reference to this - or any other StackExchange - site in which the question is posed by X and answer is submitted by Y.    EDIT 2: In the context of StackExchange, and the fact I need plurality (something I neglected to mention oooops), I have decided upon "Posters" and "Respondents"... I have reviewed this:   but it does not answer my question. The suggested fixes in this question is to set up FB, IG, and other social media pages. We have had these for months. We have 576 Instagram followers, 293 followers on Facebook, 17,425 views on Vimeo, Youtube, Pinterest and LinkedIn presence. Here is the response in a YouTube search:  Let's be clear. If you search for my company name and product name YT changes the spelling to something that doesn't exist and suggests a video with no matching result terms (using either spelling) disparaging OTHER luxury handbags, while insinuating it is referring to my handbags. When a user searches for our business, , Google and Youtube changes the spelling to Aslan Vaughn and displays these results:  For the first few months it just seemed like it was taking some time to percolate, but over 7 months we have had 17,500 unique visitors and nearly 90 backlinks.  The only results for Aslan Vaugn is the birth announcement of the second child of a musician in New Jersey. It is a Facebook post and has 14 likes. Google is favoring a spelling that has only two results with 14+ views over dozens of links and tens of thousands of views. How is this possible? An FB post with 14 likes is that much more popular than a business with 17,500 unique visitors (despite the Google obfuscation)? Is my company on some list? On other search engines my company covers the first few pages in results. Through Google, you cannot find our company no matter how many pages in you go. Unless you search for the term in quotes, . In which case we cover the first few pages here as well: How do I connect the initial highway to my six-lane road? I don't understand, because if 'don't' is 'do not' then wouldn't the sentence without conjunctions be 'do not you dare' which I'm pretty sure isn't grammatically correct. Like, when we say the term it means something else, certainly not 'do not you dare' anyway. Any ideas on why? I am so glad English is my first language. Default route lost on reboot Is there a characterization of groups with the property $\forall N\unlhd G,\:\exists H\leq G\text{ s.t. }H\cong G/N$? A common mistake for beginning group theory students is the belief that a quotient of a group $G$ is necessarily isomorphic to a subgroup of $G$.  Is there a characterization of the groups in which this property holds?  If this question is too broad, I might ask if such a characterization exists for $p$-groups.    History: I originally posed the opposite question, regarding groups for which $\exists N\unlhd G\,:\, \not\exists H \unlhd G\, \text{  s.t. } H \cong G/N$, and crossposted this to .  I received an answer there to the (now omitted) peripheral question about probability, which shows that most finite groups probably have this property.  After this, I changed the question to its current state, as this smaller collection of groups is more likely to be characterizable. If $h : Y \to X$ is a covering map and $Y$ is connected, then the cardinality of the fiber $h^{-1}(x)$ is independent of $x \in X$. In "Knots and Primes: An Introduction to Arithmetic Topology", the author uses the following proposition   Let $h: Y \to X$ be a covering. For any path $\gamma : [0,1] \to X$ and any $y \in h^{-1}(x) (x = \gamma(0))$, there exists a unique lift $\hat{\gamma} : [0,1] \to Y$ of $\gamma$ with $\hat{\gamma}(0) = y$. Furthermore, for any homotopy $\gamma_t (t \in [0,1])$ of $\gamma$ with $\gamma_t = \gamma(0)$ and $\gamma_t(1) = \gamma(1)$, there exists a unique lift of $\hat{\gamma_t}$ such that $\hat{\gamma_t}$ is the homotopy of $\hat{\gamma}$ with $\hat{\gamma_t}(0) = \hat{\gamma}(0)$ and $\hat{\gamma_t}(1) = \hat{\gamma}(1)$.  The author then follows with; "In the following, we assume that any covering space is connected. By the preceding proposition, the cardinality of the fiber $h^{-1}(x)$ is independent of $x \in X$."   I am not sure why this results is true. This is my attempt at explaining it to myself. Take two different $x_1, x_2$ and their fibers $h^{-1}(x_1), h^{-1}(x_2)$ such that $y_1 \in h^{-1}(x_1)$ and $y_2 \in h^{-1}(x_2)$. Take two paths $\gamma_1, \gamma_2$ such that $\gamma_1(0) = x_1$ and $\gamma_2(0) = x_2$. Then we get two lifts $\hat{\gamma_1}, \hat{\gamma_2}$ with $\hat{\gamma_1}(0) = y_1$ and $\hat{\gamma_2}(0) = y_2$. Now, since our covering space is connected we can continuously deform $\hat{\gamma_1}$ into $\hat{\gamma_2}$ and conclude that every elements in $h^{-1}(x_1)$ is also in $h^{-1}(x_2)$ and vice versa. I feel that this is wrong but cannot figure out the right way to see this. Any help would be appreciated. Can you explain briefly the main concepts and command line tools used to manage file permissions? Schrödinger Equation for Two Electrons? I'm having trouble finding a simple answer to this question (maybe because there isn't one), but I'm just confused about how the Schrödinger Equation would look for two electrons. I understand that it would exist in 6 dimensional configuration space, but how does the potential look? It's confusing that the potential would be different for each electron depending on where the other one is. Applying PCA to data that fail a normality test What does this depiction of a black hole in the movie Interstellar mean? I was expecting a whirlpool in 3D and the matter glowing from friction as it nears the center, as I expected a event horizon to be negligible visually.  How does this depiction work? How big is the central sphere? I am puzzled by the perpendicular circles. Are they the event horizons if they are both visible? What would be a path of a particle as it gets swallowed into the singularity? Regex exec only returning first match Mac renames itself automatically - host name is incorrect in terminal I've got a handleful of macs (all with unique names) and on occasion it prompt a notice about saying another computer on the network as this name and adds a (2) or (3) to my mac.    How can I set the host name from the command line? Are there strange attractors whose coordinates are "almost integers"? Does the sum of reciprocals of primes converge? Is this series known to converge, and if so, what does it converge to (if known)?  Where $p_n$ is prime number $n$, and $p_1 = 2$,  $$\sum\limits_{n=1}^\infty \frac{1}{p_n}$$ I have an Excel file containing data collected over many years as latitude and longitude coordinates for archaeological sites. How can I import it into QGIS as a new layer? Can I apply for a Schengen visa at a country where I'm not a citizen? If so, under what conditions? I'm a citizen of country A who would like to apply for a Schengen visa at a consulate in country B. When is this possible?