Who understands the Rafi platform director? Is the Lafite platform manager highly paid?

Who understands the Rafi platform director? Is the Lafite platform manager highly paid? -Supervisor σσ [61806] Identify Lao An Q [61806] "Excellent_Quality_Ping_Taiwan" "_" "Set_Top_wait_Meet" "One Step"

  Maximum length of the array:
  
  Due to the way the memory model works, it should not exceed 64KB of data variables. This also depends on the platform, DOS has limitations, but not in Windows.
  
  The length of the array (in bytes) depends on the number of elements it contains and the length of each element. The length of the element depends on the data type of the array and the computer being used.
  
  Pointer:
  
  1. Definition of pointer;
  
  2. Purpose of pointer;
  
  3. How to declare and initialize pointer?
  
  4. How to use pointers to variables and arrays?
  
  5. How to use a pointer to pass an array to a function?
  
  What is a pointer? To understand pointers, you need to know the basics of how computers store information in memory.
  
  Computer memory: The
  
  PC's memory (RAM) consists of millions of sequential storage units, where each unit is identified by a unique address.
  
  The computer's memory starts from 0, and the maximum value depends on the amount of memory.
  
  When a C program earns a variable, the compiler will set aside a memory unit with a unique address to store the variable.
  
  The compiler associates the address with the variable name. When the program uses this variable, it will automatically access the corresponding memory unit.
  
  The float variable takes 4 bytes, and the short takes 2 bytes. Each byte of memory has an address, so
  
  how many addresses are actually occupied by variables that occupy multiple words .
  
  So how do pointers handle addresses of multi-byte variables?
  
  The working principle is as follows:
  
  the address of the variable is actually the address of the first byte it temporarily uses.
  
  Array subscript notation is using pointers.
  
  <span style = "font-family: KaiTi_GB2312; font-size: 24px;"> # define _CRT_SECURE_NO_WARNINGS
  
  #include <stdio.h>
  
  void main ()
  
  {
  
  int var = 1;
  
  int * ptr; // Statement pointer
  
  ptr = & var ; // Assign the pointer. Note: To add &
  
  printf ("Value of var variable:% d \ n", var);
  
  printf ("Value of * ptr pointer:% d \ n", * ptr);
  
  printf ("Address of var variable:% d \ n ", & var);
  
  printf (" * ptr pointer address:% d \ n ", ptr);
  
  system (" pause ");
  
  } </ span>
  
  running result:
  
  <span style =" font-family: KaiTi_GB2312; font-size: 24px; "> # define _CRT_SECURE_NO_WARNINGS
  
  #include <stdio.h>
  
  #define MAX 10 // Declare the global variable
  
  int largest (int num_array [], int length);
  

  

  

  
  int array [MAX], count;
  
  printf ("Please enter% d digits \ n", MAX);
  
  for (count = 0; count <MAX; count ++)
  
  {
  
  // Put the elements one by one into the array
  
  scanf ( "% d", & array [count]);
  
  }
  
  printf ("\ n \ nLargest value =% d \ n", largest (array, MAX));
  
  system ("pause");
  
  }
  
  // Compare the elements in the array
  
  Get the maximum value int largest (int num_array [], int length)
  
  {
  
  int count, biggest = -12000;
  
  for (count = 0; count <length; count ++)
  
  {
  
  if (num_array [count]> biggest)
  
  {
  
  biggest = num_array [count];
  
  }
  
  }
  
  return biggest;
  
  }
  
  </ span>

Guess you like

Origin www.cnblogs.com/ycyhjj2865/p/12735333.html