- 36
- 0
- 约3.48千字
- 约 6页
- 2017-01-25 发布于重庆
- 举报
Lab 3 Conditions
OBJECTIVES
After completing this experiment, you will be able to:
Use expressions and conditional operators
Use logic operators
Use if structure and if-else structure
Use switch structure
PROCEDURES
PART 1 Understanding the difference between character and interger(include Decimal, Octal and Hexdecimal).
/*
Write down the display result through reading program, then verify by run this program.
*/
1.
#include stdio.h
void main()
{
char ch=0x31;
printf(%d\n,ch); /* ____49_______*/
printf(%o\n,ch); /* _____61_______*/
printf(%x\n,ch) /* _____31
原创力文档

文档评论(0)