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

size_t

时间:2020-04-30 09:31:40      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:char   bsp   basic   debug   define   tdd   har   some   for   

size_t is a defined type (through typedef) which is basically an unsigned long int. 

Since the idea of a negative value for a size isn‘t practical sometimes,

it is a type that is used to help find degenerate values during debugging.

 

Example:

size_t X = 100;

printf("X = %u\n", (unsigned long) X);

size_t is defined in various header files such as:

<stddef.h>, <stdio.h>, <stdlib.h>, <string.h>, <time.h>, <wchar.h> 

 

size_t

标签:char   bsp   basic   debug   define   tdd   har   some   for   

原文地址:https://www.cnblogs.com/JasperZhao/p/12806647.html

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