当前位置: 移动技术网 > IT编程>开发语言>C/C++ > C语言的引用传递方法

C语言的引用传递方法

2018年03月10日  | 移动技术网IT编程  | 我要评论

游戏王5ds142,阳光巴布亚音乐视频,网游之盟约天下

#include

#include

int main(int argc, const char * argv[]){

double pi = 3.14;

double intgerPart;

double fractionPart;

fractionPart = modf(pi, &intgerPart);

printf("Pi's Interger Part is %.0f, and Pi's fraction part is %.2f \n", intgerPart, fractionPart);

return 0;

}

Result:

Pi's Interger Part is 3, and Pi's fraction part is 0.14

Program ended with exit code: 0

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网