Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-02-2013, 09:09 AM   #1
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Rep: Reputation: Disabled
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.
Old 02-02-2013, 09:19 AM   #2
Registered: Aug 2012
Location: USA
Distribution: Slackware64-14.2
Posts: 86

Rep: Reputation: 23
I believe it's just variable assignment. For instance, creating a new integer variable m and assigning it the value of n:
int m = n;
Old 02-03-2013, 12:26 AM   #3
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Original Poster
Rep: Reputation: Disabled
Ok. Thanks for clearing that up.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to store a number in variable ? shivaa Linux - Newbie 6 10-17-2012 07:31 AM
[SOLVED] Store a value to linked name of variable or array emanation Programming 2 02-08-2012 10:41 AM
how to store result of wc -l command in variable? trynq Linux - Newbie 11 04-20-2011 07:49 AM
i need to store the output of bitset() in a variable anurupr Linux - Newbie 1 03-05-2010 12:32 AM
how to store a command in a variable lemon09 Programming 11 02-01-2010 02:03 AM > Forums > Non-*NIX Forums > Programming

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration