LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-02-2013, 09:09 AM   #1
curious95
Member
 
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
casualfred
Member
 
Registered: Aug 2012
Location: USA
Distribution: Slackware 14.1
Posts: 57

Rep: Reputation: 11
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;
 
Old 02-03-2013, 12:26 AM   #3
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

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


Reply

Tags
variables


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


All times are GMT -5. The time now is 02:40 AM.

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