I am trying to change chars pointed to by a char pointer variable:       char *test3 = "mutable";     printf("Expected: mutable, Result: %s\n", test3);     testt(test3);     printf("Expected tutable, Result: %s\n", test3);      void testt(char *s) {         *s = 't'; // FAILS, I get Segmentation Fault Error     }   Why does the above approach not work? Are chars pointed to by pointer variables immutable? If so, how would I modify the contents of the pointer variable?
The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.
Can I run PC steam games on a Mac? Show that the square of any prime number is the Factof of some integer Can anyone identify this 90s teen-fantasy series, gems in backbone, big magic, evil king? Dual boot Ubuntu (14.04) with Windows 10 Is it possible to load a TikZ library locally? Does taking levels in a prestige class cause XP Penalty? Why does printf() not print anything before sleep()? It seems to me that we could change all the current spin values of particles by multiplying them by two. Then we could describe Bosons as even spin particles and Fermions as odd spin particles. Is there some consequence or reason why we can't simply change 1/2 as the smallest unit of spin into 1?  It just seems prettier this way. In fact, there's almost an interesting relation to even and odd functions in that if you switch any two bosons around the wave function stays the same while if you switch any two fermions around the wave function becomes negative. Can I set the start point of a bezier curve? Got French Schengen visa but no "VIS" after giving fingerprints I am a US citizen and have recently visted the UK  with simply a passport which allowed me to vist for 6months I have heard rumors that I am obligated to stay in the US for a Equal amount of time that I have visited the UK before I am able to return, but I am struggling tour no any proof of this obligation .. Am I missing somthing or is it simply not true Force Messages to use SMS for specific contact rather than iMessage? Essentially, I would like to set my phone so that all my outgoing messages to a specific friend, with whom I currently text back and forth over iMessage, are sent out over SMS, never iMessage. Additionally, I would like to block any incoming iMessage texts of his and (hopefully) they'll fail and be resent via SMS.  Let me restate that: I would like to force SMS for both parties, going both ways, for a specific individual contact.   Is this possible? Blocking any usage of iMessage between myself and this other individual, so they must either send and receive any texts to or from me via SMS (or the texts fail/never arrive). This picture is a part of a table i am using, the terms subcases are vertically written but i cant center them vertically also in the next columns terms like A, B, etc are also not vertically centered. I made this table using tabulary package a. My code is  \begin{table}[H]  \centering  \caption{Saturation Table}  \label{tab:5}%  \begin{tabulary}{1\linewidth}{J J J J J J J J J J J J J}  \toprule  &amp; \textbf{Method} &amp; \multicolumn{1}{c}{\textbf{Parameters}} &amp; \textbf{Step 0} &amp; \textbf{Step 1} &amp; \textbf{Step 2} &amp; \textbf{Step 3} &amp; \textbf{Step 4} &amp; \textbf{Step 5} &amp; \textbf{Step 6} &amp; \textbf{Step 7} &amp; \textbf{Step 8} &amp; \textbf{Step 9} \\  \midrule  \multirow{4}[4]{*}{\begin{sideways}\textbf{Subcase A}\end{sideways}} &amp;  \multirow{2}[2]{*}{\textbf{A}} &amp; \textbf{No} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; \textbf{6} &amp; &amp; &amp; &amp; \\[1mm]  &amp; &amp; \textbf{Maximum Saturation {(\%)}} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 4 &amp; \textbf{5} &amp; &amp; &amp; &amp; \\  \cmidrule{2-13} &amp; \multirow{2}[2]{*}{\textbf{B}} &amp; \textbf{No} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; \textbf{8} &amp; &amp; \\[1mm]  &amp; &amp; \textbf{Maximum Saturation {(\%)}} &amp; 6 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; 9 &amp; 19 &amp; \textbf{8} &amp; &amp; \\  \bottomrule  \end{tabulary}%  \end{table}% Undergraduate research field different from PhD field In Harry Potter, Do Spells Travel in a Straight Line? In the Harry Potter world, when a magical person casts a spell, sometimes they target a specific object, like when Harry has a wand only and needs his broom, he casts "Accio Firebolt" and his broom comes to him.  But a lot of the time people point their wands just in the direction of someone to cast a spell.  One example would be in a duel.  When they do this, are they casting a spell on a particular person or at that person?  It seems, from what I remember of the movies, that some spells travel in a straight line while others specifically target a person or object.  Do any spells travel in one direction, like a laser beam?  What kind of spells are directional (instead of focusing on a particular person or object)?  And can directional spells be deflected or blocked by something like a mirror or another physical object?  (By "directional," I could have said linear, but didn't want to start sounding mathematical or scientific.  In other words, do they travel in one direction, like a laser beam would, or will they change direction to hit the intended target?) I need to prove that $H$ is a maximal normal subgroup of $G$ if and only if $G/H$ is simple.  My proof to the $(\Rightarrow)$ direction seems too much trivial:  Let us assume there exist $A$ so that $A/H\lhd G/H$. Then by definion, $H$ must be normal in $A$. Because $H$ is maximal, we get $H=A$ and therefore $A/H={1}$  Is it correct?  Update:  Now I see that I need to prove that not only $A\lhd H$ but also $A\lhd G$. Assumig I have proven that, is the proof correct? What, precisely, is a confidence interval? What defines the maximum size for a command single argument? How do I debug when the system freezes or when it crashes back to login? I am fairly new to Ubuntu and I was wonder what a good way is to debug when something crashes?   For example: I installed 11.04 and the default media player banshee makes my laptop crash after a few minutes of playing music. Since the system completely freezes and there is not error message it's hard to find out what is wrong.  Second problem I have is that sometimes the system crashes to login. I am suspecting it to be a Chromium or Flash but I am not 100% sure.  So anybody got some tips on how to debug stuff like this? I have 1:50 wound current transformer and I don't have the datasheet. Could anybody help me to calculate the burden resistor?    Maximum current to be measured: 2A  Max output voltage to ADC: 5V