I recently started learning c . Now i face some problem in function . I don't understand what is main difference between pass by value and pass by reference in function . Can anyone help me to figure out this problem with some code using c.
What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?
How to disable the "Get Windows 10" icon shown in the notification area (tray)? This icon showed up in my taskbar notification area today and I cannot seem to get rid of it:    Clicking on it displays the following screen:    So how do I disable or remove the "Get Windows 10" icon? I am trying to make a computer monitor. This means I have to have an image texture for the screen. My image texture is currently connected to an Emission BSDF shader. Unfortunately, when the emission is bright enough to emit light, the image is white-washed. I tried adding a Brightness/contrast node to the image before pushing it into the Emission BSDF, but it seems to directly counter the Emission's strength.  The desired light level   The desired image brightness @online bibliography biblatex Why isn't temperature frame dependent? Releasing bound ports on process exit How do I make sure that a socket bound to a port is properly released on process exit such that the port can be reused without bind() failing with EADDRINUSE? I've written a tiny program which just creates a socket, binds it to a fixed port, waits for a connection and then immediately terminates. When I rerun the program, the bind() call fails with EADDRINUSE, but if I wait a few minutes, it succeeds.  Is there a way I can explicitly "unbind" the socket, thereby freeing the port number? Resolve build errors due to circular dependency amongst classes I often find myself in a situation where I am facing multiple compilation/linker errors in a C++ project due to some bad design decisions (made by someone else :) ) which lead to circular dependencies between C++ classes in different header files (can happen also in the same file). But fortunately(?) this doesn't happen often enough for me to remember the solution to this problem for the next time it happens again.  So for the purposes of easy recall in the future I am going to post a representative problem and a solution along with it. Better solutions are of-course welcome.     A.h  class B; class A {     int _val;     B *_b; public:      A(int val)         :_val(val)     {     }      void SetB(B *b)     {         _b = b;         _b-&gt;Print(); // COMPILER ERROR: C2027: use of undefined type 'B'     }      void Print()     {         cout&lt;&lt;"Type:A val="&lt;&lt;_val&lt;&lt;endl;     } };       B.h  #include "A.h" class B {     double _val;     A* _a; public:      B(double val)         :_val(val)     {     }      void SetA(A *a)     {         _a = a;         _a-&gt;Print();     }      void Print()     {         cout&lt;&lt;"Type:B val="&lt;&lt;_val&lt;&lt;endl;     } };       main.cpp  #include "B.h" #include &lt;iostream&gt;  int main(int argc, char* argv[]) {     A a(10);     B b(3.14);     a.Print();     a.SetB(&amp;b);     b.Print();     b.SetA(&amp;a);     return 0; } How do you set a default value for a MySQL Datetime column?  In SQL Server it's getdate(). What is the equivalant for MySQL? I'm using MySQL 5.x if that is a factor. The Follow Questions and Answers feature is now live across the Network We are happy to announce that the  follow question and answer feature is now live across the Network, including Stack Overflow, all Stack Exchange sites, and all Meta sites. (International Stack Overflow sites will have it turned on in a day or two once we have translations all set.) You can follow any question or answer (that you did not author) by clicking on the [follow] button that is shown in the menu immediately below the post (alongside the [share] button):    After you have followed a post, you will get inbox notifications for all new answers (in the case where you followed a question), comments, edits, and notices. You will not receive notifications for any action that you performed. As was mentioned in the earlier post, we are not making changes at this point to the notifications received by a post owner, or due to @mentions. The initial release had been planned to only include question following. Thanks to many folks who chipped in over the past few weeks, we are happy to release both question and answer following at the same time. These are available in both the regular and mobile views. We are still planning on two more related releases:  Follows profile tab and question listing filter: A tab for follows will be added to your user profile activity page. Each user will be able to view this tab that will provide a listing of followed questions and answers, with standard sorts, and the ability to unfollow from the listing. Users (with the exception of moderators and authorized staff) will not be able to see this information about other users (nor will it be made public in the API, SEDE, or data dumps). We will be renaming the Favorites feature to Bookmarks. As we mentioned in the preview post, the feature will be the same as Favorites, with the name and icon updated to more accurately represent user expectations and usage. And you will be able to both &quot;bookmark&quot; and &quot;follow&quot; a question.  We hope that this new feature will allow you to have better access to the content that you care about and want to keep tabs on. Update (June 11, 2020): The user profile tab and the rename of Favorites to Bookmarks have been released. $\aleph_1$ is the cardinality of the countable ordinals. It is the least cardinal number greater than $\aleph_0$, and assuming the continuum hypothesis it's equal to $\mathfrak{c}$, the cardinality of the the real numbers.    My question is, is it possible for all $\aleph_1$ subsets of $\Bbb{R}$ to have Lebesgue measure $0$?  This is, of course, impossible assuming the continuum hypothesis, because then all sets of real numbers would have measure $0$, which is absurd.  But is $\mathsf{ZFC}$ + $\lnot\mathsf{CH}$ + "all subset of $\Bbb{R}$ of cardinality $\aleph_1$ have Lebesgue measure $0$" consistent?  If not, what if we replaced Lebesgue measure with some other measure?  It may be worth noting that, although there may be subsets of $\Bbb{R}$ with cardinality $\aleph_1$, there are no subsets of $\Bbb{R}$ which have the order-type $\omega_1$ (the order-type of the countable ordinals) under the usual ordering on $\Bbb{R}$.  Any help would be greatly appreciated.  Thank you in Advance. Use abbreviations for 1000+ score in linked posts I don't really enjoy the ragged view of linked posts:    This feature request is to use a format that suggested in ; something that matches the user-profile tags page in terms of the tally:    That is, use abbreviations for 1000+ (k for 1,000+, m for 1,000,000+, ...). rent a car, rent out a car, hire a car English not my native language. I'm trying to understand what would be correct in British English.  If I want to use a car for some time. I can say, "I want to rent a car". But from my knowledge there may be a  misunderstanding. I can say the same words if I want to give a car to someone to use for some time and I want to receive payment.  So what would be correct and not misunderstanding?   1) I want to use a car for some time = "I want to hire a car" 2) I want to give a car to someone to use for some time = "rent out a car"   Is my understanding correct? Which render engine renders faster? Blender Internal or Cycles? I wonder which render engine is faster? I mean, you have 2 identical scenes and render it using BI and Cycles. Which image will be generated faster? What will be the time difference?  Do you know any site (please post a link) which shows the results of such comparison? Trim string in JavaScript? How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript? Sylvester's determinant identity Sylvester's determinant identity states that if $A$ and $B$ are matrices of sizes $m\times n$ and $n\times m$, then   $$ \det(I_m+AB) = \det(I_n+BA)$$   where $I_m$ and $I_n$ denote the $m \times m$ and $n \times n$ identity matrices, respectively.  Could you sketch a proof for me, or point to an accessible reference? how to represent geography or zip code in machine learning model or recommender system? I am building a model and I think that geographic location is likely to be very good at predicting my target variable.  I have the zip code of each of my users. I am not entirely sure about the best way to include zip code as a predictor feature in my model though.  Although zip code is a number, it doesn't mean anything if the number goes up or down.   I could binarize all 30,000 zip codes and then include them as features or new columns (e.g., {user_1: {61822: 1, 62118: 0, 62444: 0, etc.}}.  However, this seems like it would add a ton of features to my model.   Any thoughts on the best way to handle this situation? unbalaced data set in classification tasks Unexpected output of xargs The statement below should print afc abc but it prints abc abc instead. I tried many times but every time same result Don't know why this happens could anyone explain and help me?  echo abc|xargs -i{} echo $(echo {}|sed 's/b/f/g') {} I’m trying to solve a logic puzzle that goes like this:     The police have three suspects for the murder of Mr. Cooper: Mr. Smith, Mr. Jones, and Mr. Williams. Smith, Jones, and Williams each declare that they did not kill Cooper. Smith also states that Cooper was a friend of Jones and that Williams disliked him. Jones also states that he did not know Cooper and that he was out of town the day Cooper was killed. Williams also states that he saw   both Smith and Jones with Cooper the day of the killing and that either Smith or Jones must have killed him. Can you determine who the murderer was if one of the three men is guilty, the two innocent men are telling the truth, but the statements of the guilty man may or may not be true?   When i was young, i used to solve such puzzles graphically, drawing vertices and arrows and excluding impossible cases. But now i want to do that formally. How can i express this puzzle definition using proposition calculus notation, inference and truth tables? Or, in other words, when you stumble upon a logical puzzle and you want to solve it formally, what is your algorithm?  What i tried. I extracted several propositions from the definition:   S: didn't kill C S: J knew C S: W disliked C J: didn't kill C J: J didn't know C J: out of town W: didn't kill C W: S with C W: J with C   There are 3 groups of propositions, two of them are always true, the third may contain either true or false statements. Let be $A = 1 \land 2 \land 3$, $B = 4 \land 5 \land 6$, $C = 7 \land 8 \land 9$. Then from  by using truth tables and Karnaugh maps i deduct that the statement “some two of A, B, C are true” looks like $(A \land B \land \neg C) \lor (A \land \neg B \land C) \lor (\neg A \land B \land C)$. But wait, “may or may not be true” means that all statements might be true, not that at least one is false (hence the NAND is not appropriate here). So the sentence should be reformulated as “at least some two of A, B, C are true”. Am i going in the right direction? Anyone ever seen a "wok adapter" for induction cooktops? In theory a cheap pressed steel wok would work on an , but the "contact patch" for a traditional round bottomed wok would be so small it would be ineffective.  Has anyone seen a steel or cast-iron "wok adapter" with a flat bottom and a concave "bowl" on top to sit the wok in, serving dual purposes of supporting the wok on the stovetop and transferring the induction heat to the wok?  Could anyone speculate if this would this even work? Or wouldn't you be able to get the wok hot enough? Coupon collector problem with partial collection of a specific set of coupons I am very new in probability and combinatorics and have a naive question around a variation on the coupon collector problem with partial collection.   Lets assume we have a box with 45 coupons labeled 1-45. Now in this case I would like to adjust the CCP such that I can calculate the expected value (amount of draws necessary) to collect 10 specific items. For example item 1-10. How do I adjust my model such that I can calculate the amount of draws necessary to collect each item n times.   I assume that I have to adjust CCP2 in following post () to include the probability that I catch one item is 10/45.   All tips and tricks are welcome!  Thanks for your help