zoukankan      html  css  js  c++  java
  • 关于指针数组、数组指针、指针函数、函数指针等的问题

     用变量a给出下面的定义

    a) 一个整型数(An integer

    a) int a; 

    b)一个指向整型数的指针( A pointer to an integer

    b) int *a; 

    c)一个指向指针的的指针,它指向的指针是指向一个整型数( A pointer to a pointer to an intege)r

    c) int **a;

    d)一个有10个整型数的数组( An array of 10 integers

    d) int a[10]; 

    e) 一个有10个指针的数组,该指针是指向一个整型数的。(An array of 10 pointers to integers

    e) int *a[10]; 

    f) 一个指向有10个整型数数组的指针( A pointer to an array of 10 integers

    f) int (*a)[10]; 

    g) 一个指向函数的指针,该函数有一个整型参数并返回一个整型数(A pointer to a function that takes an integer as an argument and returns an integer

    g) int (*a)(int ); 

    h) 一个有10个指针的数组,该指针指向一个函数,该函数有一个整型参数并返回一个整型数( An array of ten pointers to functions that take an integer argument and return an integer 

    h) int (*a[10])(int );

     

  • 相关阅读:
    Linux--shell的awk--10
    Spring Boot 整合 tk.mybatis
    pring Boot 整合 Druid
    Thymeleaf 模板布局
    Thymeleaf 内置对象
    Thymeleaf 表达式语法
    Thymeleaf 参考手册
    Thymeleaf常用语法
    Thymeleaf简介及第一个thymeleaf模板
    Docker 安装nginx
  • 原文地址:https://www.cnblogs.com/smile-at-you/p/3357805.html
Copyright © 2011-2022 走看看