IOS NSLog%hd%hhd%ld和%lld格式说明符 [英] iOS NSLog %hd %hhd %ld and %lld format specifiers

查看:32
本文介绍了IOS NSLog%hd%hhd%ld和%lld格式说明符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些格式说明符的含义是什么?

%hd %hhd %ld %lld

推荐答案

%hd用于short integerunsigned short integer

%hhd用于short short integerunsigned short short integer

%ld用于long integerunsigned long integer

%lld用于long long integerunsigned long long integer

就这么简单。

此处hhhlll仅为%d中的长度修饰符

来源:http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Strings/Articles/formatSpecifiers.html

这篇关于IOS NSLog%hd%hhd%ld和%lld格式说明符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆