Please enable JavaScript.
Coggle requires JavaScript to display documents.
Revision - Coggle Diagram
Revision
Important
-
-
-
firstNumber - Camel
firstnumber - smallcase
FIRSTNUMBER - uppercase
FirstNumber - Pascal
first_number - underscore
Datatype
Primitive
(signed integer) Int - 4bytes - uint (unsigned integer)
(Signed short integer) short - 2 bytes - ushort (unsigned short integer)
(Signed long integer) long - 8 bytes - ulong (unsigned long integer)
Sbyte - 1 byte - byte
-
In c#, 1 character is 2 byte size
-
Other (reference)
- Class
- enum
- object
- string
- struct
-
0,1 - Binary digits = BIT
8 bits= 1 byte = 1 character (ASCII)
2 bytes= 1 character (Unicode)
-
2^10= 1024 = 1000 bytes= 1 Kb
1000 Kb= 1 Mb
1000 Mb= 1 Gb
1000 Gb= 1 Tb (terabyte)
1000 Tb= 1 Pb petabyte
hexabyte
pentabyte
octabyte
-
I/O
-
Input
Console.ReadLine()
takes variables
VARIABLE
1) a variable is a named storage location that can hold a value of a specific data type, such as a number or a string.
2) The value stored in a variable can be changed during the execution of a program.
3) Variables are commonly used to store input from
a user,
intermediate results in calculations,
and final output.
4) They are also used to store values that are used multiple times throughout a program.
5) Variables are usually declared with a specific data type, and they can be assigned a value using the assignment operator (=).
how to name a variable
- Do not start the name of the variable with a number
- Do not contain any special characters
- Underscore behaves as a letter
- Cannot start with a number but can contain a number
- The variables are case sensitive.
-
Hardware
Input
Process
Output
- Monitor
- Speaker
- Projector
-
- Keyboard
- Mouse
- Microphone
-