escort tekirdağ escort tokat escort muğla escort ordu escort sivas escort kuşadası escort kıbrıs
C Programming

Basic C Program to implement the data types

Basic C Program to implement the data types 1

Basic Program to implement the data types- Receive and Print integer, float, char and double. Also find the size of memory for each datatype in different compilers.

int main()
     int  a;
     char b;
     float c;
     double d;
     printf("The size of integer is: %ld \n",sizeof(int));         
     printf("The size of char is: %ld \n",sizeof(char));
     printf("The size of float is: %ld \n",sizeof(float));
     printf("The size of double is: %ld \n",sizeof(double));
     return 0;


The size of integer is: 4
The size of char is: 1
The size of float is: 4
The size of double is: 8

Get more stuff
in your inbox

Subscribe to our newsletter and get interesting stuff and updates to your email inbox.

Bibith K Mathew (born on 29 July 1998) is an Indian Internet entrepreneur. He is best known as the CEO and Managing Director of TalkBate Digital Partners.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.