Write a program to find the size of int,float,double and char
Answers
Answered by
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
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