Study day 10

Time:2022-5-1

C language

  1. Array – batch defined variable – construction type

    1. One dimensional array

      1. Definition

        1. Name [constant expression]—— [] cannot contain variables

        2. int a[10];
        3. Define that the size of the array is case dead

      2. quote

        1. Cannot reference the entire array

        2. int a,b[10];
             	for (a = 0; a <=9 ; a++)
             	{
             		a[b] = a;
             	}
             	for (a = 0; a <= 9; a++)
             	{
             		printf("a[%d]=%d\n", a, b[a]);
             	}
      3. initialization

Recommended Today

JVM + GC parsing (premise knowledge concatenation)

Premise preparation JVM GC garbage collection JVM virtual machine monitoring, tuning and troubleshooting Tomcat and microservice optimization 1. Premise review 1.1. JVM memory structure 1.1.1、 JVM Architecture Overview The gray part in the figure isThread private, there is almost no garbage collectionOrange partThread sharing, the main place where garbage recycling occurs What is the class […]