cool hit counter A summary of knowledge of pointers for C programming_Intefrankly

A summary of knowledge of pointers for C programming


Server development engineer, artificial intelligence, cloud computing engineer, information security (hacker anti-hacker), big data, data channel, embedded engineer, streaming media server, data control solution, graphics processing, audio and video development engineer, game server, distributed system, game assistance, etc.

The next recommended C/C + + learning exchange skirt:567 625 668, whether you are white or bull, I welcome the editor, from time to time to share dry goods, including the editor's own compilation of a 2017 latest C/C + + and 0 basic introductory tutorials, welcome to the beginning and advanced in the small partners.

A summary of general knowledge of pointers for C language programming

Variable names, function names, string names and array names are essentially the same, they are all address helpers: in the process of writing code, we assume that variable names indicate the data itself, while function names, string names and array names indicate the first address of a block of code or data; after the law is compiled and linked, these names disappear and are replaced by their corresponding addresses.

p++

p+i

p-=i

2) When assigning a value to a pointer variable, assign a copy of the address of the data to it, not directly to an integer, e.g.

It is pointless, and the process of applying it will, as usual, lead to a collapse of the law. Finally, I still want to recommend the C/C ++ learning exchange skirt:567 625 668, whether you are white or bull, I welcome the editor, from time to time to share dry goods, including the editor's own compilation of a 2017 latest C/C ++ and 0-based introductory tutorial, welcome the beginning and advanced in the small partners.

NULL

5) Arrays also have types, The original meaning of an array name was to indicate a set of data of different types。 When defining an array, Maybe and sizeof、& The array name indicates the entire array only when the operators are used together, The array name in the expression is converted to a pointer to the array。

The C language is process-oriented, while C++ is goal-oriented

C is a structured language, and its main points are algorithms and data structures. The primary consideration in the planning of a C program is how to go through a process and perform arithmetic processing of inputs (or environmental conditions) to get outputs (or complete process (business) manipulation).

The biggest difference between C and C++: is that they have different ways of thinking used to solve problems. The reason why C++ is more advanced than C is because " the concept of planning has now been incorporated into C++", whereas in terms of the language itself, it's more of an algorithmic concept in C. Then it doesn't matter if it's C. Wrong! Algorithms are the foundation of programming, and good planning is not possible without good algorithms. And, "C plus good planning" can produce very good stuff.

Finally, I still want to recommend the C/C ++ learning exchange skirt:567 625 668, whether you are white or bull, I welcome the editor, from time to time to share dry goods, including the editor's own compilation of a 2017 latest C/C ++ and 0-based introductory tutorial, welcome the beginning and advanced in the small partners.


Recommended>>
1、Introducing the Ether Classic Project the Emerald Platform
2、The Essential OpenCV Primer for Getting Started in Computer Vision
3、Understanding deep learning from a statistical machine learning perspective algorithms theory and scalable computing
4、Mystery Robot Huaiyuan Store Event Recruitment Into Artificial Intelligence
5、Wujiang to Wuzhishan logistics backhaul 13862331526 backhaul truck return truck

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号