mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 06:44:07 -06:00
vault backup: 2022-08-04 11:36:04
This commit is contained in:
parent
8935e51634
commit
5be3315549
@ -60,3 +60,42 @@ routines must be declared bfore being used
|
|||||||
- `extern int eleven(void):`
|
- `extern int eleven(void):`
|
||||||
|
|
||||||
# if, const, for, while, do, case etc same as java
|
# if, const, for, while, do, case etc same as java
|
||||||
|
|
||||||
|
# Types
|
||||||
|
|
||||||
|
```
|
||||||
|
char
|
||||||
|
float, double
|
||||||
|
int, short, long
|
||||||
|
signed, unsigned
|
||||||
|
void
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## sizeof
|
||||||
|
- to find out size of any type (built-in or user defined)
|
||||||
|
|
||||||
|
## stdint
|
||||||
|

|
||||||
|
|
||||||
|
## Structs
|
||||||
|
- like classes but without methods
|
||||||
|
- all fields public
|
||||||
|
- you can have structs in structs
|
||||||
|
|
||||||
|
## typedef
|
||||||
|
- any type can be given a new name using typedef
|
||||||
|
|
||||||
|
```
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
float x, y, z;
|
||||||
|
} coordinate;
|
||||||
|
```
|
||||||
|
|
||||||
|
## static
|
||||||
|
- the scope of this routine is local to this file
|
||||||
|
- this variable maintains its value between calls
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user