C language: Introduction of Data types and Pointer
bhartisalunke1
0 views
19 slides
Sep 28, 2025
Slide 1 of 19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
About This Presentation
Introduction of Data types and Pointer
Size: 1.38 MB
Language: en
Added: Sep 28, 2025
Slides: 19 pages
Slide Content
Pointers
Data Types in C Data Type Memory Use Example int 4 bytes Stores integers int age = 25; float 4 bytes Stores decimal numbers float height = 5.9; double 8 bytes Stores large decimal numbers with higher precision double pi = 3.14159; char 1 byte Stores single characters char grade = 'A'; short 2 bytes Stores smaller integers short count = 150; long 4 or 8 bytes Stores large integers long population = 7000000000; unsigned int 4 bytes Stores only positive integers unsigned int score = 95; bool 1 byte (varies) Stores true or false values _Bool isDone = 1; (C99 and later)