Create a free account on Computer Sir Ki Class and unlock access to valuable learning resources.
Exam Paper Downloads: After registering and logging in, you can download exam question papers in PDF format to practice and prepare for your exams.
Student Support: Get assistance with your doubts, queries, and questions related to your studies. Our support is here to help you understand topics and resolve your learning difficulties.
Register today and make your exam preparation easier and more effective!
program shows use of sizeof operator to display the storage size of different data types
Source Code
TC++ #1426
Source Code
×
Ask AI About This Code
Default Prompt that is passed along with the code is given below, You can write your own prompt if you so desire.
×
Test CPP
The code has been copied automatically for you in the clipboard. After that open any of the service and press cntrl-v to paste in the given code area. Needs a bit of tweaking as per the link.
Size of boolean is 1
Size of char is 1
Size of wchar_t is 2
Size of char16_t is 2
Size of char32_t is 4
Size of int is 4
Size of short int is 2
Size of long int is 4
Size of long long int is 8
Size of float is 4
Size of double is 8
Size of long double is 12