Pointer array?? The difference between array pointers. xml

Source: Internet
Author: User

Pre{line-height:1;color: #1e1e1e; Background-color: #f0f0f0; font-size:16px;}. Sysfunc{color: #627cf6; font-style:italic;font-weight:bold;}. Selffuc{color: #800080;}. Bool{color: #d2576f;}. Condition{color: #000080; font-weight:bold;}. Key{color: #000080;}. Var{color: #800000; font-style:italic;}. Digit{color: #ff00ff; font-weight:bold;}. Includepre{color: #1e1e1e;}. operator? {color: #008000; font-weight:bold;}

Pointer array?? The difference between array pointers

?

These two concepts are highly confusing and can be assisted in the following ways:

Array of pointers

Shaping an array

Character array

?

So, the meaning of the pointer array is an array, the element is the pointer type

?

Example:

 
    
     
  char?*
  
     
      
   p[
   
      
       
    2]={"AB", "CD"};
   
      
  
     
 
    

Array pointers

Shaping pointers

Character pointer

?

As a guide, the meaning of an array pointer is a pointer, and this pointer refers to a set of

??

Example:

 
    
     
  Char?
  
     
      
   (*
   
      
       
    P
    
       
        
     ) [
     
        
         
      2];?
      
         
           Char?? 
          
            array[ 
           
             2]; 
            
              P 
             
               =& 
              
                array;? 
               
              
             
            
           
         
     
        
    
       
   
      
  
     
 
    

pointer function???? The difference between function pointers

Pointer functions

Shaping functions

Character functions

??

So, the pointer function is a function that returns a value as a pointer

?

Example:? int?*?test ();

function pointers

Shaping pointers

Character pointer

Array pointers

?

The function pointer is a pointer to the function.

?

Example: int?* (*p) ()

This article uses the calligraphy and painting novel software, content and software independent, calligraphy and painting fiction software? More enjoyable to read, more enjoyable to write, easier to publish.

Pointer array?? The difference between array pointers. xml

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.