Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,838 members, 7,820,923 topics. Date: Wednesday, 08 May 2024 at 03:17 AM

Deep Dive Into Variables Series - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Deep Dive Into Variables Series (245 Views)

0x01. C - Variables, If, Else, While ALX Task / Deep Dive Into Variables Series(ii) / Variables In Programming (2) (3) (4)

(1) (Reply)

Deep Dive Into Variables Series by logicDcoder(m): 8:18am On Aug 04, 2022
What are variables in programming?

In a layman's definition, variables are content holders (Image 1). They can hold values (Numerical, Alphabetical, Objects, Functions, Memory addresses, etc). One unique characteristic of variables is that they are mutable.
Variables are stored in the computer memory (RAM - Random Access Memory). To have an in-depth understanding of how variables function, let us view a section of computer memory as a grid or checkerboard (image 2) where each cell represents a space that can take up a value.

Assumption: A variable points to each cell; that's a variable represents a cell.

Each cell is pointed out or identified with a unique number, and this number can be in binary, octal, decimal, or hexadecimal number system called memory addresses.

A memory address, often represented in hexadecimal, is a unique address given to each specific cell for easy identification in computer memory. Our computer knows where to extract values using these addresses.

Humans understand variable names, while computers understand memory addresses.

(1) (Reply)

Azure Voucher / When You Go React You Can't Go Back / R Programming ,R Studio ,python And Data Analysis

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.