Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

Data types:

In C programming language, data types specify the type of data that a variable can hold. Here are some common data types in C:

1. Basic Data Types:
2. Derived Data Types:

Example:

struct Point { int x; int y; };

Union: Similar to a structure but uses the same memory location for all its members.

Example:

union Data { int i; float f; char str[20]; };

Enumeration (enum): A user-defined data type used to assign names to integral constants.

Example:

enum Weekday { Monday, Tuesday, Wednesday, Thursday, Friday, }
3. Modifiers:

C provides a rich set of data types that allow programmers to work with various types of data efficiently. Understanding these data types and their characteristics is essential for writing robust and efficient C programs.



Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java