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

TypeUseExample
intWhole numbers10, 100
charSingle characters'A', 'z'
floatDecimal numbers3.14, 2.5
unsignedOnly positive values0 to 255
longBigger integer values10,000+

🔹 3. Memory Size (8051 Based)
Data TypeSizeRange (approx.)
char1 byte-128 to 127
int2 bytes-32,768 to 32,767
unsigned int2 bytes0 to 65,535
float4 bytes±3.4e38 (limited use)

🔹 4. Example Code:

#include <reg51.h> void main() { int speed = 120; char status = 'A'; unsigned int distance = 300; while(1) { // Use variables to control device } }

📌 5. Embedded lo Eppudu float avoid cheyyali?

  • Microcontrollers lo memory limited ga untundi

  • float usage performance ni slow cheyyachu

  • Try to use int or unsigned 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

Popular posts from this blog

Embedded C lo Operators Explained in Telugu

Embedded C Basics – Beginners Guide in Telugu