gcc generates static libraries (. a) and dynamic libraries (. so)

This paper mainly describes how gcc generates static library (. a) and dynamic library (. so) to help us better carry out embedded programming. Because sometimes security is involved, static libraries or dynamic libraries may be provided for us to use. System environment: Ubuntu Desktop 18.04 1, What are static and dynamic libraries We u ...

Added by Peggy on Thu, 07 Oct 2021 19:53:42 +0300

Getting Started with 0 Notes [National Excellent C ourse]

C Language Programming All code shows the code inside the main function Computer thinking Rolling-Rotating Division int u = 32; int v = 32; //If v=0, at the end of the calculation, u is the greatest common divisor //v!=0 calculates the remainder of u/v so that u=v=the remainder while(v!+0) { int temp = u%v; u = v; v = temp; } print ...

Added by neex1233 on Thu, 07 Oct 2021 19:37:41 +0300

1005 continue (3n+1) conjecture (25 points)

1005 continue (3n+1) conjecture (25 points) Callatz conjecture has been described in 1001. In this subject, the situation is a little complicated. When we verify the karatz conjecture, in order to avoid repeated calculation, we can record every number encountered in the recursive process. For example, when verifying n=3, we need to calculate 3 ...

Added by Mad_Mike on Sun, 03 Oct 2021 22:34:25 +0300

Jiangsu Province C language level II preparation (8 / 20)

catalogue Theoretical questions 1. Modern information technology 2.Power processor: used for supercomputers, servers and workstations three ย  8-bit binary representation of the integer range Non theoretical questions 1. The loop body of the do while statement will be executed at least once 2. The strcat function (s1, s2) combines t ...

Added by nadeem14375 on Sat, 02 Oct 2021 04:12:43 +0300

Little knowledge of C language -- printf() function

โ€ƒ โ€ƒ speaking of printf() function, students who write code must be very familiar with it. This is a standard printing function in C language, which is often used when debugging code or information output. The conversion of printf function is described as follows: Conversion description modifier Tags in printf() The following ...

Added by Teaky on Sat, 02 Oct 2021 03:53:25 +0300

c language preprocessing during the national day without rest, overtaking on the curve is enough

Program translation environment In any implementation of ANSI C, there are two different environments for program translation and execution. The first is the translation environment, in which the source code is converted into executable machine instructions. The second is the execution environment, which is used to actually execute cod ...

Added by abalfazl on Fri, 01 Oct 2021 07:54:14 +0300

Mine sweeping game design and code implementation

๐Ÿฑ โ€ ๐Ÿ‘“ Introduction to mine clearance Minesweeper is a popular puzzle game, which was released in 1992. The goal of the game is to find out all non thunder grids according to the numbers in the click grid in the shortest time, and avoid stepping on thunder. Stepping on a thunder means losing the whole game. Minesweeping web inte ...

Added by jashankoshal on Fri, 01 Oct 2021 05:55:10 +0300

Introduction to C language

1, Loop (while) 1. How does the computer determine the number of digits? (1) . the size range of the number of customs clearance judgments by the computer: //The number shall not be greater than five digits; int x; int n=0; scanf ("%d",&x); if (9999>x>999){ n=4; }else if (999>x>99){ n=3; }else if (99>x> ...

Added by dineshsjce on Fri, 01 Oct 2021 05:25:06 +0300

Dynamic Memory Allocation-Functions + Common Errors

Foreword: Why is there dynamic memory allocation? We already know how to open up memory as follows int a=10;//Open up 4 bytes on stack space char arr[10]={0};//Open up 10 bytes of continuous space on stack space The above method of opening up space has two drawbacks: 1. The size of space development is fixed. 2. Arrays must be declare ...

Added by neveriwas on Tue, 28 Sep 2021 22:23:12 +0300

Pointer and Array Pen Test Parsing

Pointer and Array Question Resolution Do you think you know about arrays and pointers? Look at these questions and you'll be confident that you'll be good at them. There are 8 groups of written questions today. Please be patient to finish them. Thank you. First strlen-library function For string length, stop when'\0'is encountere ...

Added by malam on Tue, 28 Sep 2021 21:57:23 +0300