函數指針的調用

#include
#include <stdlib.h>
#include <string.h>


void test(int);


int main()
{
void (*fp)(int);
fp=test;
(*fp)(9);       


    fp(9);
    return 0;
}


void test(int a)
{
printf( "%d\n", a );

}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章