Computer Science, asked by hemalathaauma6145, 10 months ago

Write a program to find the size of int,float,double and char

Answers

Answered by Shinchanboy03
0

Answer:

Program to Find the Size of Variables. #include<stdio.h> int intType; float floatType; double doubleType; char charType; // sizeof evaluates the size of a variable. printf("Size of int: %ld bytes\n", sizeof(intType)); printf("Size of float: %ld bytes\n", sizeof(floatType));

Answered by Anonymous
5

Explanation:

double doubleType; char charType; // sizeof evaluates the size of a variable. printf("Size of int: %ld bytes\n", sizeof(intType)); printf("Size of float: %ld bytes\n", sizeof(floatType));

Similar questions