Trending Post:HTML Frame Tag Full Details with suitable exampleTable Tag in HTMLList Tag Full details with suitable exampleImage Tag in HTML – Full Details with suitable exampleMarquee Tag in HTML – Full Details with suitable exampleBest Cloud Gaming & Streaming Laptops (2025)Generative AI Complete Explanation with ExampleBest differences between MacBook Pro, HP, Dell, Lenovo, Asus, and Gaming laptopsBest Laptop for Data Science Students (using by ML & AI ) with related exampleTypes of Network Attacks with examplesBest Use Cases for AI Laptops in 2025How AI in Laptops Is Changing the Way We Work and CreateDifference Between a Regular Laptop and an AI-Powered Laptop – 2025 GuideDifference Between a Regular Laptop and an AI-Powered LaptopWhat Is an AI Laptop? Features, Benefits, and Future PotentialTop Trending AI Gaming Laptops of 2025Difference between Artificial intelligence and Chatgpt with exampleArtificial Intelligence in Blockchain and CryptocurrencyWhat Are AI-Powered Laptop & PCs with NPUs?Top Programming Languages to Learn in 20255G Use Cases in Healthcare & IndustryHow 5G Is Enabling Smart Devices and Drones: Full Details with ExamplesWhat to Expect from 6G: Faster Than 5G – Full Details with ExamplesHow Augmented Reality (AR) Is Changing the Online Shopping ExperienceTop Metaverse Platforms for Education with categoryWhat’s the Difference Between AR, VR, and MR?Leading AI Tools for Developers in 2025How GitHub Copilot is Changing Programming with exampleHow Blockchain Is Used Beyond CryptocurrencyMulticloud vs Hybrid Cloud with exampleMulticloud: Full Details with exampleHybrid Cloud: Full Details with exampleWhat is Web3? With full detailsWhat is Serverless Computing? Explained with BenefitsBest Cloud Platforms for Startups in 2025How AI is used in Cyber Security Defense SystemsTop Cybersecurity Threats in 2025 with examplesBest Laptops with NPU (Neural Processing Unit) Support in 2025How Windows 12 Will Change Computing with Copilot AIWhat Are AI PCs? Explained with Real-Life ExamplesWhat is Windows 11? Features of Windows 11 (with Examples)CAT 6 (Category 6) Cable – Full Details with ExampleDifference Between BFS and DFS with ExampleDepth-First Search (DFS) – Full Explanation with ExampleWrite the full details of BFS with exampleDifference Between Synchronous and Asynchronous with exampleWhat is Asynchronous? || Write the full details of Asynchronous with exampleWhat is Synchronous? || Write the full details of Synchronous with exampleROM (Read-Only Memory): Full Details and TypesRAM (Random Access Memory): Full Details and TypesDifference Between Symmetric Key and Asymmetric Key Cryptography – Full Details with ExamplesAsymmetric Key Cryptography – Full Details with ExampleSymmetric Key Cryptography – Full Details with ExampleCentral Processing Unit (CPU) – Full Details with ExampleWhat is a Network Hub and How it Works?What is a Storage Device? Types with exampleComputer Networking – Advantages and DisadvantagesTypes of SDLC Models with exampleFull Details of Software Development Life Cycle (SDLC):Network Control Protocol (NCP) – Full Details with ExampleFull details of IPv4 and IPv6 || Difference Between IPv4 and IPv6What is an IP Address? Write full details of IP Address with exampleDBMS Integrity Constraints – Full Details with ExamplesDifference Between Primary Key and Foreign KeyForeign Key in DBMS – Full Explanation with ExamplePrimary Key in DBMS – Full Explanation with ExampleDifference between Combinational Circuits and Sequential CircuitsFull Details of Sequential CircuitsFull Details of Combinational CircuitsDifference Between Primary Memory and Secondary MemorySecondary Memory (Secondary Storage) – Full ExplanationPrimary Memory (Main Memory) – Full Explanation with exampleDifference Between Linux and WindowsFull Details of Microsoft Windows Operating SystemFull Details of Linux Operating SystemIntroduction to Memory and Memory UnitsWhat is an Algorithm? | Introduction to AlgorithmsDifference Between Algorithm and FlowchartType of computer || Based on Size and PowerC Functions – Full Explanation with exampleData Types in C Language with exampleTypes of Computer Networks with exampleWhat is Network Address Translation (NAT) with ExampleWhat is Software and Types of Software || Difference Between System Software and Application SoftwareVPN क्या है? VPN कैसे काम करता है? VPN के प्रकार, VPN के कुछ प्रमुख उदाहरणStep-by-step guide to install Python for beginners || Download PythonWhat is Python? || Why Learn Python? Python Syntax and Basic ConceptsWhat is CSS? || CSS (Cascading Style Sheets) with exampleCSS (Cascading Style Sheets) के बारे में पूरी जानकारीभारत में लॉन्च हुआ HP का नया लैपटॉप, गेमर्स के लिए है खास, जानें कीमत और फीचर्सSmartphone users सावधान! फोन में ये साइन दिखे तो समझ लें, हो रही है Screen Recording – पूरी गाइडAndroid 16 के नए फीचर्स: मोशन सिकनेस से बचाने के लिए नया फीचर, सुरक्षा और बहुत कुछव्हाट्सएप से केवल चैट ही न करें, PiFy के बारे में भी जानिएसर्च इंजनों के लिए वेबसाइट को इंडेक्स कैसे करें?UPI scam: साइबर ठगी से बचें, यूपीआई फ्रॉड से सुरक्षित रहने के लिए विस्तृत गाइडWhat is TDS? ||TDS Deductor and TDS DeducteeIntroduction to GST, What is GST? Types of GST, Pre GST and Post GSTWhat is Tax? Types of Taxes, Difference between Direct and Indirect TaxesDomain & Hosting:डोमेन और होस्टिंग को जोड़ना (जैसे कि अपनी वेबसाइट को ऑनलाइन लाना) एक महत्वपूर्ण प्रक्रिया है आइए इसके बारे में जानते हैWhat is Shared Hosting, VPS Hosting, and Dedicated Hosting
Trending Post:HTML Frame Tag Full Details with suitable exampleTable Tag in HTMLList Tag Full details with suitable exampleImage Tag in HTML – Full Details with suitable exampleMarquee Tag in HTML – Full Details with suitable exampleBest Cloud Gaming & Streaming Laptops (2025)Generative AI Complete Explanation with ExampleBest differences between MacBook Pro, HP, Dell, Lenovo, Asus, and Gaming laptopsBest Laptop for Data Science Students (using by ML & AI ) with related exampleTypes of Network Attacks with examplesBest Use Cases for AI Laptops in 2025How AI in Laptops Is Changing the Way We Work and CreateDifference Between a Regular Laptop and an AI-Powered Laptop – 2025 GuideDifference Between a Regular Laptop and an AI-Powered LaptopWhat Is an AI Laptop? Features, Benefits, and Future PotentialTop Trending AI Gaming Laptops of 2025Difference between Artificial intelligence and Chatgpt with exampleArtificial Intelligence in Blockchain and CryptocurrencyWhat Are AI-Powered Laptop & PCs with NPUs?Top Programming Languages to Learn in 20255G Use Cases in Healthcare & IndustryHow 5G Is Enabling Smart Devices and Drones: Full Details with ExamplesWhat to Expect from 6G: Faster Than 5G – Full Details with ExamplesHow Augmented Reality (AR) Is Changing the Online Shopping ExperienceTop Metaverse Platforms for Education with categoryWhat’s the Difference Between AR, VR, and MR?Leading AI Tools for Developers in 2025How GitHub Copilot is Changing Programming with exampleHow Blockchain Is Used Beyond CryptocurrencyMulticloud vs Hybrid Cloud with exampleMulticloud: Full Details with exampleHybrid Cloud: Full Details with exampleWhat is Web3? With full detailsWhat is Serverless Computing? Explained with BenefitsBest Cloud Platforms for Startups in 2025How AI is used in Cyber Security Defense SystemsTop Cybersecurity Threats in 2025 with examplesBest Laptops with NPU (Neural Processing Unit) Support in 2025How Windows 12 Will Change Computing with Copilot AIWhat Are AI PCs? Explained with Real-Life ExamplesWhat is Windows 11? Features of Windows 11 (with Examples)CAT 6 (Category 6) Cable – Full Details with ExampleDifference Between BFS and DFS with ExampleDepth-First Search (DFS) – Full Explanation with ExampleWrite the full details of BFS with exampleDifference Between Synchronous and Asynchronous with exampleWhat is Asynchronous? || Write the full details of Asynchronous with exampleWhat is Synchronous? || Write the full details of Synchronous with exampleROM (Read-Only Memory): Full Details and TypesRAM (Random Access Memory): Full Details and TypesDifference Between Symmetric Key and Asymmetric Key Cryptography – Full Details with ExamplesAsymmetric Key Cryptography – Full Details with ExampleSymmetric Key Cryptography – Full Details with ExampleCentral Processing Unit (CPU) – Full Details with ExampleWhat is a Network Hub and How it Works?What is a Storage Device? Types with exampleComputer Networking – Advantages and DisadvantagesTypes of SDLC Models with exampleFull Details of Software Development Life Cycle (SDLC):Network Control Protocol (NCP) – Full Details with ExampleFull details of IPv4 and IPv6 || Difference Between IPv4 and IPv6What is an IP Address? Write full details of IP Address with exampleDBMS Integrity Constraints – Full Details with ExamplesDifference Between Primary Key and Foreign KeyForeign Key in DBMS – Full Explanation with ExamplePrimary Key in DBMS – Full Explanation with ExampleDifference between Combinational Circuits and Sequential CircuitsFull Details of Sequential CircuitsFull Details of Combinational CircuitsDifference Between Primary Memory and Secondary MemorySecondary Memory (Secondary Storage) – Full ExplanationPrimary Memory (Main Memory) – Full Explanation with exampleDifference Between Linux and WindowsFull Details of Microsoft Windows Operating SystemFull Details of Linux Operating SystemIntroduction to Memory and Memory UnitsWhat is an Algorithm? | Introduction to AlgorithmsDifference Between Algorithm and FlowchartType of computer || Based on Size and PowerC Functions – Full Explanation with exampleData Types in C Language with exampleTypes of Computer Networks with exampleWhat is Network Address Translation (NAT) with ExampleWhat is Software and Types of Software || Difference Between System Software and Application SoftwareVPN क्या है? VPN कैसे काम करता है? VPN के प्रकार, VPN के कुछ प्रमुख उदाहरणStep-by-step guide to install Python for beginners || Download PythonWhat is Python? || Why Learn Python? Python Syntax and Basic ConceptsWhat is CSS? || CSS (Cascading Style Sheets) with exampleCSS (Cascading Style Sheets) के बारे में पूरी जानकारीभारत में लॉन्च हुआ HP का नया लैपटॉप, गेमर्स के लिए है खास, जानें कीमत और फीचर्सSmartphone users सावधान! फोन में ये साइन दिखे तो समझ लें, हो रही है Screen Recording – पूरी गाइडAndroid 16 के नए फीचर्स: मोशन सिकनेस से बचाने के लिए नया फीचर, सुरक्षा और बहुत कुछव्हाट्सएप से केवल चैट ही न करें, PiFy के बारे में भी जानिएसर्च इंजनों के लिए वेबसाइट को इंडेक्स कैसे करें?UPI scam: साइबर ठगी से बचें, यूपीआई फ्रॉड से सुरक्षित रहने के लिए विस्तृत गाइडWhat is TDS? ||TDS Deductor and TDS DeducteeIntroduction to GST, What is GST? Types of GST, Pre GST and Post GSTWhat is Tax? Types of Taxes, Difference between Direct and Indirect TaxesDomain & Hosting:डोमेन और होस्टिंग को जोड़ना (जैसे कि अपनी वेबसाइट को ऑनलाइन लाना) एक महत्वपूर्ण प्रक्रिया है आइए इसके बारे में जानते हैWhat is Shared Hosting, VPS Hosting, and Dedicated Hosting
A data type in C specifies the type of data a variable can hold, such as integers, floating-point numbers, characters, etc. It also defines the size, range, and operations allowed on that data.
🔶 Types of Data Types in C
C language has the following main categories of data types:
1. Primary (Fundamental) Data Types
2. Derived Data Types
3. User-defined Data Types
4. Void Data Type
✅ 1. Primary (Fundamental) Data Types
These are the basic built-in data types provided by the C language.
Data Type
Size (in bytes)
Format Specifier
Example
Description
int
2 or 4
%d or %i
int a = 10;
Stores integers
float
4
%f
float x = 2.5;
Stores decimal numbers (single precision)
double
8
%lf
double y = 3.14159;
Stores decimal numbers (double precision)
char
1
%c
char ch = 'A';
Stores a single character
⚠️ Size may vary depending on compiler and system (e.g., 32-bit vs 64-bit).
🔹 Integer Types in Detail
Type
Size (Bytes)
Range (Approx)
Format Specifier
int
4
-2,147,483,648 to 2,147,483,647
%d
short int
2
-32,768 to 32,767
%hd
long int
4 or 8
-2^31 to 2^31-1 or more
%ld
unsigned int
4
0 to 4,294,967,295
%u
🔹 Floating Point Types
Type
Size (Bytes)
Precision
Format Specifier
float
4
6-7 digits
%f
double
8
15-16 digits
%lf
long double
10 or 12
>16 digits
%Lf
🔹 Character Type
Type
Size (Bytes)
Range
Format Specifier
char
1
-128 to 127 (signed)
%c
unsigned char
1
0 to 255
%c
✅ 2. Derived Data Types
These are based on the fundamental data types.
Type
Description
Example
Array
Collection of same data types
int arr[10];
Pointer
Stores memory address of variable
int *ptr = &a;
Function
Returns data after execution
int add(int x, int y);
Structure
Groups different data types
struct Student {int id; char name[20];};
✅ 3. User-defined Data Types
These are defined by the programmer using built-in types.
Type
Description
Syntax Example
typedef
Creates alias for data type
typedef int Number;
enum
Defines a set of named integer constants
enum Color {RED, GREEN, BLUE};
struct
Combines variables of different types
struct Person {char name[20]; int age;};
union
Similar to struct but shares memory
union Data {int i; float f;};
✅ 4. Void Data Type
Type
Description
Example
void
Represents absence of value (no return type)
void display();
Used for:
Functions with no return (void main())
Void pointers (void *ptr)
🧪 Examples in C Code
#include <stdio.h>
int main() {
int a = 10;
float b = 5.75;
char c = 'Z';
double d = 3.14159265359;
printf("Integer: %d\n", a);
printf("Float: %f\n", b);
printf("Character: %c\n", c);
printf("Double: %lf\n", d);
return 0;
}
🖥 Output:
Integer: 10
Float: 5.750000
Character: Z
Double: 3.141593
5G technology enables high-speed, low-latency, and massive device connectivity, which is revolutionizing healthcare delivery, patient monitoring, and data sharing. 1. Remote Surgery (Telesurgery) Description:5G enables surgeons to perform operations remotely…
How 5G Is Enabling Smart Devices and Drones: Full Details with Examples
1. Introduction: The Role of 5G in Modern Technology The fifth generation of wireless communication (5G) is a revolutionary leap from 4G LTE. It is not just a faster internet…