Saturday, May 21, 2016

Data type In C Program

#include <stdio.h>

int main()
{
    printf("\n\t    Integer       type data takes %d byte,\a",  sizeof(int));
    printf("\n\t    Character  type  data takes %d byte,\a",  sizeof(char));
    printf("\n\t    Floating    type data takes %d byte,\a",  sizeof(float));
    printf("\n\t    Double      type data takes %d byte,\a",  sizeof(double));

   return 0;
}

No comments:

Post a Comment