C_Basic_Data_Types1_ with exampless.pptx

KamranKiyani5 0 views 6 slides Aug 30, 2025
Slide 1
Slide 1 of 6
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6

About This Presentation

data type intro


Slide Content

Basic Data Types in C Understanding fundamental data types

Introduction C provides several standard data types to represent numbers, characters, etc. They form the foundation for all programs.

Primary Data Types int - Integer numbers (e.g., 5, -20) char - Single character (e.g., 'A', 'z') float - Single precision floating point numbers double - Double precision floating point numbers void - Represents no value

Examples of Primary Data Types int age = 25; char grade = 'A'; float pi = 3.14f; double bigPi = 3.1415926535; void functionName(); // returns nothing

Type Modifiers short, long, signed, unsigned can modify basic types Examples: short int, long int, unsigned int, long double

Summary Basic types are building blocks of C programs. Choosing the right type ensures efficient memory usage and correctness.
Tags