How do you define a positive integer in the C language?
In C language, positive integers can be defined using either unsigned int or unsigned long int. Both types are unsigned integer types that can represent integers greater than or equal to 0. The specific definitions are as follows:
unsigned int num1; // 定义一个无符号整数变量num1
unsigned long int num2; // 定义一个无符号长整数变量num2
Variables defined this way can only store positive integers and cannot store negative numbers or decimals. If you need to store a larger range of positive integers, you can use the unsigned long long int type.