LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   How to store the value of a variable into another variable. (http://www.linuxquestions.org/questions/programming-9/how-to-store-the-value-of-a-variable-into-another-variable-4175448335/)

curious95 02-02-2013 09:09 AM

How to store the value of a variable into another variable.
 
What does copying a variable into another variable mean? Does it mean addition, multipication or variable assignment ( n == m). For example Copy n into m. Using C.

casualfred 02-02-2013 09:19 AM

I believe it's just variable assignment. For instance, creating a new integer variable m and assigning it the value of n:
Code:

int m = n;

curious95 02-03-2013 12:26 AM

Ok. Thanks for clearing that up. :)


All times are GMT -5. The time now is 01:49 PM.