I want to print the maximum value of the unsigned integer which is of 4 bytes.
#include \"stdafx.h\" #include \"conio.h\" int _tmain(int argc, _TCHAR* argv[
You should use <stdint.h> and <limits.h> then INT_MAX or whatever limit is appropriate for your type.
<stdint.h>
<limits.h>
INT_MAX
printf("%u", ~0); //fills up all bits in an unsigned int with 1 and prints the value.