C 語言筆記
  • Introduction
  • GCC 編譯器
  • 使用Visual Studio
  • Header Files
    • stat.h
  • 型別
    • 指標
    • 字串
  • 建立 Library
  • Linux kernel
  • Stack pointer、Frame pointer
  • 相關推薦資料
Powered by GitBook
On this page

Was this helpful?

  1. 型別

指標

#include <stdio.h>
int main() {
    int *d;
    printf("%p\n", &d);
    printf("%p\n", d);
    printf("%d", *d);
}

之後輸入

gcc test.c && ./a.out

回傳指標的function

int* test(int as)
{
    static int a;
    return &a;
}
Previous型別Next字串

Last updated 4 years ago

Was this helpful?