-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_numbers.c~
41 lines (41 loc) · 1.03 KB
/
main_numbers.c~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "main.h"
#include <stdio.h>
#include <limits.h>
/**
* main - Entry point
*
* Return: Always 0
*/
int main(void)
{
printf("%d\n", 65176);
_printf("%d\n", 65176);
printf("%d\n", -777765176);
_printf("%d\n", -777765176);
printf("%d\n", 00002);
_printf("%d\n", 00002);
printf("%d\n", 0);
_printf("%d\n", 0);
printf("%d\n", 7);
_printf("%d\n", 7);
printf("%d\n", -2255445);
_printf("%d\n", -2255445);
printf("Maximum value of int: %d\n", INT_MAX);
_printf("Maximum value of int: %d\n", INT_MAX);
printf("Minimum value of int: %d\n", INT_MIN);
_printf("Minimum value of int: %d\n", INT_MIN);
printf("--------------------------------\n");
printf("%i\n", 65176);
_printf("%i\n", 65176);
printf("%i\n", 0);
_printf("%i\n", 0);
printf("%i\n", -2255445);
_printf("%i\n", -2255445);
printf("Maximum value of int: %i\n", INT_MAX);
_printf("Maximum value of int: %i\n", INT_MAX);
printf("Minimum value of int: %i\n", INT_MIN);
_printf("Minimum value of int: %i\n", INT_MIN);
return (0);
}