Hello coders, in this post we will learn how to write C Program to Find Size of int float double and char. This is a very basic C program.
As you already know that this site does not contain only c programming solutions here, you can also find the solution for other problems. I.e. Web Technology, Data Structures, RDBMS Programs, Java Programs Solutions, Fiverr Skills Test answers, Google Course Answers, Linkedin Assessment, Leetcode Solutions, and Coursera Quiz Answers.

if you want to learn C programming free of cost please visit:
C Program to Find Size of int float double and char
#include<stdio.h> int main() { printf("Size of char: %ld byte\n",sizeof(char)); printf("Size of int: %ld bytes\n",sizeof(int)); printf("Size of float: %ld bytes\n",sizeof(float)); printf("Size of double: %ld bytes", sizeof(double)); return 0; }
Output:
Size of char: 1 byte Size of int: 4 bytes Size of float: 4 bytes Size of double: 8 bytes
Conclusion
I hope after going through this post, you understand how to write a C Program to perform all arithmetic operations, if there is any case program is not working and showing an error please let me know in the comment section.