Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C sizeof Operator

#include <stdio.h>
int main()
{
    int a;
    float b;
    double c;
    char d;
    printf("Size of int=%lu bytes
",sizeof(a));
    printf("Size of float=%lu bytes
",sizeof(b));
    printf("Size of double=%lu bytes
",sizeof(c));
    printf("Size of char=%lu byte
",sizeof(d));

    return 0;
}
 
PREVIOUS NEXT
Tagged: #C #sizeof #Operator
ADD COMMENT
Topic
Name
3+3 =