这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » 软件与操作系统 » let us use the pointer programing in the

共1条 1/1 1 跳转至

let us use the pointer programing in the linux

专家
2016-07-30 15:51:38     打赏

 In the linux system programing ,the pointer is important part.

so,we will see  a simple example using the pointer. I hope it can help you know the pointer in the parameter transmit,the point function.

#include <stdio.h>
 char *input(void)
  {
   char *word;
  word="www.eepw.com.cn";
   return word;
  }

int main(void)
{
 char *p;
 p=input();
 printf("p=%s\n",p);
  
  
 return 0;
}

 

it can be compiled in ubuntu 12.04 using gcc compile tool.




关键词: pointer     linux     programing    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]