I have just been starting with C++ and I have come across multiple types of array declaration in C++  int data[3];   and other type is,  int *data= new data[3];   What is the difference between the two? Since, I have not allocated memory in the first case will I overwrite memory which may already be in use and potentially cause segmentation error?
Programming language books explain that value types are created on the stack, and reference types are created on the heap, without explaining what these two things are. I haven't read a clear explanation of this.  I understand what a stack is. But,    Where and what are they (physically in a real computer's memory)? To what extent are they controlled by the OS or language run-time? What is their scope? What determines the size of each of them? What makes one faster?
How do I install nVidia graphics drivers from “X-Swat” ppa? How am I supposed to install nvidia drivers from xorg-edgers? I try  sudo add-apt-repository ppa:xorg-edgers/ppa -y sudo apt-get update sudo apt-get install nvidia-graphics-drivers-331   and I get  E: Unable to locate package nvidia-graphics-drivers-331   The   nvidia-graphics-drivers-331 for trusty, why wouldn't it install? I would like to convert a large LaTeX project (i.e. spanning multiple files) into plain text. The purpose is generation of statistics, so representing mathematics is not an issue. In fact, all mathematics is ideally ignored.  I have found  but could not get it to run. It seems unfinished, but is exactly what I am looking for otherwise. I have a USB flash drive which is no longer recognized by my computer. Windows Disk Management and DiskPart report No Media with no storage space (0 bytes) on the drive and I cannot partition or format the drive:     If the drive appears in Windows Explorer, trying to access it returns an error message indicating that there is no disk inserted, such as the following:     Please insert a disk into drive X:.   Various disk partitioning and data recovery utilities don't recognize the drive or only give a generic name for the drive and cannot access the contents of the drive.  What can I do? How do I recover data from the drive?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details. How to clone/copy all file/directory attributes onto different file/directory? I want to copy the attributes (ownership, group, ACL, extended attributes, etc.) of one directory to another but not the directory contents itself.  This does not work:  cp -v --attributes-only A B cp: omitting directory `A'              Note: It does not have to be cp. Mirror modifier is not working, no mirrored object? I'm learning how to use the mirror modifier and I am having some trouble.  When I apply the modifier to my object I don't see a mirrored version of it.  What am I doing wrong? I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the &quot;official  requirements&quot;, the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below. In $Sets$, the initial object is $0 = \emptyset$. We have $C \times \emptyset = \emptyset$ for any set $C$. As there are no maps to the empty set, we don't get much of the universal property of the product.  I am now wondering what is special about arbitrary categories $\mathscr{C}$ with $C \times 0 \cong 0$ for all objects $C$ of $\mathscr{C}$, where $0$ is the initial object of $\mathscr{C}$.   From Sheaves in Geometry and Logic by MacLane (p.194), in any topos $\mathscr{C}$, any arrow $k:C \to 0$ is an isomorphism. The universal property of the product would then also not yield very much.   Are there any categories of higher interest? sir, problem about a host file sir, over department created a host file to run over office program in windows, but they give us dell system having operating system ubuntu 16.4 now my question is that how this add file in ubuntu to run the program. the windows command is given below  TO ACCESS FIORI - Please Follow the Instructions in this Video  Path:- C:\Windows\System32\drivers\etc  Copy attached Hosts File in the above path.  Fiori Link to access SAP in Google Chrome: Methods to find $\lim\limits_{n\to\infty}\frac1n\sum\limits_{k=1}^nn^{1/k} $ What would you suggest here?  $$\lim_{n\to\infty} \frac{1}{n} \sum_{k=1}^{n} n^{1/k} $$ If $X$ is measurable space, $f : X\to [-\infty,+\infty]$, function such that $f^{-1}([-\infty,r))$ measurable for all rational numbers $r$,prove than $f$ is measurable  I know that $f$ is measurable iff set $\{x\in X : f(x)&lt;a\}$ is measurable for all $a\in \mathbb{R}$ but for $a\in\mathbb{Q}$ I don't know how to proceed. Can't view deleted questions via Android app A few months ago I was introduced to the new  type and was glad 's flaws with regard to time zones were finally taken care of.  However, I was left wondering if there were any overhead or problems that could occur from using this new type.  I work on a multi-locale web application. Does anyone know of anything that could sway me from just using it for all my date/time work? Is there a window for abuse here?  Reference: Why doesn't PHP DOM include slash on self closing tags? Add "paragraphs" to Markdown help Like balpha once , a &lt;br&gt; line break (newline) should be used in very few cases, and surely is not the same as a new &lt;p&gt; paragraph. Still  only explains line breaks, not paragraphs:      Some sites  an additional &quot;New paragraphs only occur when there is a blank line. A single carriage does not create a new paragraph.&quot;, but I feel that's not very clear*, and the emphasis is still on line breaks while it should be on paragraphs:      So: As a minimum, please add (rephrase) a note about the blank line, and maybe use &quot;Only when really needed [...] force&quot;:  Paragraphs and line breaks Simply use a blank line between two paragraphs to start a new &lt;p&gt; paragraph. Only when really needed, end a line with two spaces to force a &lt;br/&gt; line break: How do I love thee?__     Let me count the ways   I'd even prefer an explicit example, simply as I think &lt;p&gt; should be favoured over &lt;br&gt; in most situations:  Paragraphs and line breaks Simply use a blank line to start a new &lt;p&gt; paragraph: First sentence in the first paragraph. Another sentence. And a third. Maybe making this multiple consecutive lines of text, but still one paragraph.  The second paragraph.  Only when really needed, end a line with two spaces to force a &lt;br/&gt; line break: How do I love thee?__     Let me count the ways   Alternatively, slightly change the existing &quot;Linebreaks&quot;† part, and above that add a standalone section, :  Paragraphs A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines: A blank line is any line that looks like a blank line. A line containing nothing but spaces or tabs is considered blank.  Normal paragraphs should not be indented with spaces or tabs.  Line breaks Only when really needed, end a line with two spaces to force a &lt;br/&gt; line break: How do I love thee?__     Let me count the ways   And: maybe even add a section &quot;Paragraphs&quot; to the inline post help on top of the editor? I'm not sure which help tab should then be shown  though.  * Also note how not all sites highlight the two spaces with a different background color. † Yes, I think &quot;line break&quot; likes a space too... Define path for packages in the LaTeX file (analog of \input@path or \graphicspath for \usepackage) BibTeX handling of the Dutch "van" name prefix with natbib Do stone quarries respawn in Hearthfire? Why is my attempt at downloading Big Sur failing? I am currently using a MacBook Pro 13&quot; Mid 2018 with Touch Bar. Today macOS Big Sur was released and I tried to download it but it's getting stuck at 484.4 MB. Initially, it shows 16-17 minutes left, but as soon as it reaches 484.4 MB it's stuck and the timer goes till 10 hours! My Wi-Fi is totally stable with a speed of 100 Mbps. I tried to restart my Mac but it still gets stuck. Earlier there were similar issues in the App Store (even now they are). The issue was I was not able to download an app unless I connect to the US VPN. I even contacted support but they were not able to help out. It wasn't a big deal as a VPN could be used. But now even with VPN, it gets stuck. The times they are a-changin' Is it true that $0.999999999\ldots=1$? I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?