码迷,mamicode.com
首页 > 其他好文 > 详细

computer systems work from a programmer's perspective

时间:2016-09-23 23:16:18      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

2.

 

typedef unsigned char *byte_pointer;

void show_bytes(byte_pointer start, size_t len) {

  int i;

  for (i=0;i<len;i++)

    printf(" %.2x",start[i];

  printf("\n");

}

void inplace_swap(int *x,int *y) {

  *y = *x^*y;

  *x = *x^*y;

  *y = *x^*y;

}

 

computer systems work from a programmer's perspective

标签:

原文地址:http://www.cnblogs.com/oh-mine/p/5901881.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!