An open API service indexing awesome lists of open source software.

https://github.com/codahiri/clang

C language
https://github.com/codahiri/clang

c clang compiler gcc-complier markdown programming-language shell

Last synced: about 2 months ago
JSON representation

C language

Awesome Lists containing this project

README

        

# C Language

`C` is a general-purpose programming language that has been around for nearly 50 years.

`C` has been used to write everything from operating systems (including Windows and many others) to complex programs like the Python interpreter, Git, Oracle database, and more.
The versatility of C is by design. It is a low-level language that relates closely to the way machines work while still being easy to learn.

> Understanding how computer memory works is an important aspect of the C programming language.

## Cheet Sheat > [cheet](./topics/)

---

## Data Types

C supports the following basic data types:

- **int**: integer, a whole number.
- **float**: floating point, a number with a fractional part.
- **double**: double-precision floating point value.
- **char**: single character.

| Type | Description | Values |
| -------- | --------------------------------------- | ------------------------------- |
| `int` | a whole number | -2,147,483,648 to 2,147,483,647 |
| `float` | a number with possible decimals | 6 decimal places |
| `double` | a number with possible decimals | 15 decimal places |
| `char` | stores one character (letter or number) | a single character |

| symbol | type |
| -------- | --------------- |
| %d or %i | int |
| %f | double or float |
| %c | char |
| %s | array char |

| Priority | Symbol |
| -------- | ------------------------ |
| 1 | ++ |
| 1 | -- |
| 1 | () |
| 2 | ! |
| 2 | (typecast) |
| 3 | \* |
| 3 | / |
| 3 | % |
| 4 | + |
| 4 | - |
| 5 | <, <= |
| 5 | >, >= |
| 6 | ==, != |
| 7 | && |
| 8 | or |
| 9 | all assignment operators |