CHAPTERTHREE
Be focused and you will archive alot. choose your ON C
Explore moreBe focused and you will archive alot. choose your ON C
Explore moreLorem ipsum dolor sit amet consectetur adipisicing elit. Hic odit rem dolorum molestiae fugit deserunt exercitationem recusandae, itaque ratione harum sit repellat dolor temporibus deleniti non voluptatem nostrum quas? Cumque veniam, molestias id natus pariatur dolores aut nemo iure facilis expedita, temporibus exercitationem ullam ex officiis reiciendis quaerat enim consequuntur.
This data type is used to store integer values. In other words, it stores whole positive and negative
Char is used to store single characters
Char is used to store single characters
This data type is used to store integer values. In other words, it stores whole positive and negative whole numbers
Examples: 10 , -5 ,0
`` `
1. // declaration only
2. int x ;
3. // declaration and intialisation
4. int x = 3.141592665 ;
1. // declaration only
2. char x ;
3. // declaration and intialisation
4. char x = "A" ;
float:
Stores single-precision floating-point numbers (numbers with decimal points).
Examples: 3.14, -0.5, 1.2e3
1. // declaration only
2. int x ;
3. // declaration and intialisation
4. int x = 3.141592665 ;
double:
Stores double-precision floating-point numbers (more precise than float).
Examples: 3.14159265, -0.5e-10, 1.23456789
1. // declaration only
2. double x ;
3. // declaration and intialisation
4. double x = 3.141592665 ;
Derived Data Types
Array
A collection of elements of the same data type.stored in a continous memory location It allows you store muntiple values under a
Example: int numbers[5] = {1, 2, 3, 4, 5};
1. // declaration only
2. int numbers[5] = {} ;
3. // declaration and intialisation
4. intnumbers[5] = {8,2,3,6,7 };
#include <stdio.h> int main() { int age = 18; char grade = ""A; float pi = 3.14159; double avogadro = 6.02214076e23; printf( "Age: %d\n", age); printf("Grade: %c\n", grade); printf("Pi: %f\n", pi); printf("Avogadro's number: %lf\n", avogadro); return 0; }
Age: 25 Grade: A Pi: 3.141590 Avogadro's number: 602214075999999987023872.000000
vildash network team has had alot of impact on others but here are the vildash network team testimonies and expirience while working with the team
you can now connect and text other users from our database. you just neeed to click bellow to message them
WE HAVE CODE EDITORS FOR LANGUAGES LIKE C, C#, C++, HTML, CSS, javascript, JAVA VISUAL BASIC
We dont just teach you to code we teach you to code and build amazing systems.we are group of expert who wants to promote our field of studies