Git Product home page Git Product logo

learning-c's Introduction

learning-C

ANSI C 关键字

32个

内存中的二进制存储

一个字节 byte = 8bit 数值是以补码来表示的

  • 正数的补码和原码相同
  • 负数的补码:将该数的绝对值的 二进制形式 按位取反 在加1

例如:求-10的补码

原码 0 0001010

取反 1 1110101

加一 1 1110110

第一位是符号位

阿斯克码

数字从65开始 + 32 表示对应的小写字母

int main() {
    for (int i = 0; i < 256; ++i) {
        char c = i;
        if (c == 'A') {
            printf("%d\n", i); // 65
        }
        if (c == 'a') {
            printf("%", i); // 97
        }
    }
}

运算优先级

img.png

learning-c's People

Contributors

likeishacker avatar fzdwx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.