Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code c++
#1
Example 1

int age; // variable set up
then later in the program
age = 39;

The value 39 is pulled or fetched (Rvalue) and stored into the variable named age (Lvalue); destroying the value previously stored in that variable.

Example 2

int age; // variable set up
int voting_age = 18; // variable set up with initialization
then later in the program
age = voting_age;
The value 18 is pulled or fetched from the variable named voting_age and stored into the variable named age is an example of r-value.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ASCII code is binary numbers of 0 and 1 in C++ 2012 Vuhelper 0 2,281 01-04-2012, 10:41 PM
Last Post: Vuhelper
  int x[10]; x[0]= 1; x[1]=2; if following code is executable in C++ 2012 Vuhelper 0 1,936 01-04-2012, 10:17 PM
Last Post: Vuhelper
  array project code c++ 2011 Vuhelper 0 1,277 12-10-2011, 06:32 PM
Last Post: Vuhelper
  factorial in C++ code 2011 Vuhelper 0 955 12-10-2011, 06:31 PM
Last Post: Vuhelper
  ASCII to char conversion code in C++ 2011 Vuhelper 0 1,725 11-05-2011, 05:01 PM
Last Post: Vuhelper
  C++ with loop code 2011-12 Vuhelper 0 981 09-18-2011, 07:09 PM
Last Post: Vuhelper
  Revised Student Record Code written in C++ 2011-12 Vuhelper 0 1,478 09-04-2011, 07:18 AM
Last Post: Vuhelper
  c++ code check this code 2011-12 Vuhelper 0 1,099 09-04-2011, 07:17 AM
Last Post: Vuhelper
  Sorting code in c++ Vuhelper 0 1,007 06-09-2011, 10:03 PM
Last Post: Vuhelper
  ASCII code of c++ Vuhelper 0 1,224 06-07-2011, 07:01 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)