C Programming

Basic C Program to implement the data types

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.

#include<stdio.h>
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;
 }

Output:

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.

www.canlitvtr.net | www.idealminer.com | mersinnet.net |

Escort Mersin

|

Ankara Escort Bayan

|

Adana Escort Bayan

|

www.escortantalyali.com

|

www.izmirbescort.com

|

www.istanbulbescort.com

|

Eskort bayanlar

|

www.escortmersinli.com

|

Escort

|

izmirescort.biz.tr

|

izmirescort.info.tr

|

www.escortizmirescort.org

|

www.escortizmirescort.com

|

gaziantep escort

|

çanakkale escort

|

çeşme escort

|

pubg mobile hile indir