Programming Languages

PROGRAM TO DETERMINE THE SIZE OF INT, CHAR, FLOAT, DOUBLE TYPE OF DATA TYPE IN COMPUTER MEMORY

/* PROGRAM TO DETERMINE THE SIZE OF INT,CHAR,FLOAT,DOUBLE TYPE OF DATA TYPE IN COMPUTER MEMORY */

#include<stdio.h>
#include<conio.h>

void main()
{
clrscr();
printf(“\n\nTHE SIZE OF INT IS : %d”,sizeof(int));
printf(“\n\nTHE SIZE OF FLOAT IS : %d”,sizeof(float));
printf(“\n\nTHE SIZE OF CHAR IS : %d”,sizeof(char));
printf(“\n\nTHE SIZE OF DOUBLE IS: %d”,sizeof(double));
getch();
}

ANIL VERMA
Hello Everyone, Welcome to A. V. Powertech.

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.