Register a domain and help support LQ
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, 10: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, 10:19 AM   #2
Registered: Aug 2012
Location: USA
Distribution: Slackware 14.1
Posts: 74

Rep: Reputation: 15
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, 01: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 08:31 AM
[SOLVED] Store a value to linked name of variable or array emanation Programming 2 02-08-2012 11:41 AM
how to store result of wc -l command in variable? trynq Linux - Newbie 11 04-20-2011 08:49 AM
i need to store the output of bitset() in a variable anurupr Linux - Newbie 1 03-05-2010 01:32 AM
how to store a command in a variable lemon09 Programming 11 02-01-2010 03:03 AM

All times are GMT -5. The time now is 03:11 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