#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
Fundamentals

Data Types in C Programming - A Beginner Guide with examples

What are Data Types?

A data type specifies the kind of value a variable can hold and how much memory it occupies.

Primary (Basic) Data Types

  • int — whole numbers, e.g. int age = 25;
  • float — single-precision decimal numbers, e.g. float price = 19.99;
  • double — double-precision decimal numbers.
  • char — a single character, e.g. char grade = 'A';
  • void — represents "no value", commonly used for functions that return nothing.

Derived Data Types

Arrays, pointers, functions, and structures — built from primary types.

User-Defined Data Types

struct, union, enum, and typedef.

int marks = 90;
float pi = 3.14f;
char letter = 'Z';

Ready to master real-world C Programming development?

Learn C Programming hands-on with mentor-led, live sessions.

Explore Course