Home / Programs / short unsigned constant in c
Programming Example

short unsigned constant in c

👁 891 Views
💻 Practical Program
📘 Step by Step Learning
short unsigned constant in c

Program Code

 #include"stdio.h"
int main()
{
   const unsigned short a = 77;  // a is unsigned short constant
   printf("short unsigned constant: %d \n", a);
   
   return 0;
} 

Output

short unsigned constant: 77
Press any key to continue . . .

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.