Embedded C lo Data Types Explained in Telugu
✍️ Full Content:
Embedded C lo Data Types Explained in Telugu
📌 Introduction:
Embedded C lo programs rayataniki manam variables ni define cheyyali. A variables memory lo ela allocate avuthayi, ela behave chestayi ane di data types meeda depend avutundi.
🔹 1. What is a Data Type?
Data type ante:
-
A variable store cheyyagalige value type ni define cheyyadam.
-
For example: number, character, float (decimal) value.
🔹 2. Main Types of Data Types in Embedded C
Type | Use | Example |
---|---|---|
int | Whole numbers | 10, 100 |
char | Single characters | 'A', 'z' |
float | Decimal numbers | 3.14, 2.5 |
unsigned | Only positive values | 0 to 255 |
long | Bigger integer values | 10,000+ |
🔹 3. Memory Size (8051 Based)
Data Type | Size | Range (approx.) |
---|---|---|
char | 1 byte | -128 to 127 |
int | 2 bytes | -32,768 to 32,767 |
unsigned int | 2 bytes | 0 to 65,535 |
float | 4 bytes | ±3.4e38 (limited use) |
🔹 4. Example Code:
📌 5. Embedded lo Eppudu float avoid cheyyali?
-
Microcontrollers lo memory limited ga untundi
-
float
usage performance ni slow cheyyachu -
Try to use
int
orunsigned int
whenever possible
✅ Conclusion:
Embedded C lo data types ni manam correct ga use chesthe:
-
Program efficient ga run avutundi
-
Memory save avutundi
-
Errors avoid avuthayi
Next article lo “Embedded C lo Operators Explained in Telugu” cheddham!
Comments
Post a Comment