Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

size of int in c

#include <limits.h>
#include <stdio.h>
 
int main()
{
    printf("minimum int value = %d
"
           "maximum int value = %d
"
           "size of int in bytes = %zu
"
           "size of int in bits = %zu",
           INT_MIN, INT_MAX, sizeof(int),
           sizeof(int) * CHAR_BIT);
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #size #int
ADD COMMENT
Topic
Name
3+1 =