answersLogoWhite

0


Best Answer

The core if it would contain lines like these:

printf ("sizeof (char)=%d\n"

"sizeof (short)=%d\n"

"sizeof (int)=%d\n"

"sizeof (long)=%d\n"

"sizeof (long long)=%d\n"

"sizeof (size_t)=%d\n"

"sizeof (void *)=%d\n"

"sizeof (ptrdiff_t)=%d\n"

"sizeof (va_list)=%d\n"

"sizeof (intptr_t)=%d\n"

, (int)sizeof (char)

, (int)sizeof (short)

, (int)sizeof (int)

, (int)sizeof (long)

, (int)sizeof (long long)

, (int)sizeof (size_t)

, (int)sizeof (void *)

, (int)sizeof (ptrdiff_t)

, (int)sizeof (va_list)

, (int)sizeof (intptr_t)

);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write c plus plus program to display size of the each data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How would you write a program that read an integer for display each of digit of integer in English?

Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.


How do you write a c program to prints name?

Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.


How do you write a program in C to find and display the sum of each row and column of a 2 dimensional array of type float?

array type


How can I write a program to display prime numbers from 1 to 100?

Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.


Is it more efficient to store the data in a matrix then write it to the file at the end of the program or to write each element to the file as the program runs?

It shouldn't make significant difference, only if the matrix is huge -- in that case you shouldn't store it in memory.


What tab is used to display the Backstage view for each Office program?

File


How Write javascript program to display multiplication table of 2 without accepting input from user?

Use a counted for loop. On each iteration, multiply the control variable by 2 and print the result.


Why display data in the form of a chart?

To present a graphical representation of the data that makes it easier for the viewer to compare data items with the whole data set (pie chart) or with each other (bar chart).


What is display each set of data in a line plot mean?

It means i need help can u tell me what It means


How do you split excel sheets to many worksheets?

One method is to copy a worksheet as many times as you would like to split data. If you have a worksheet that contains three sets of data you would like to display on separate sheets, then copy the sheet two more times, so you have three total copies. On each sheet, delete the data you do not want to display on that sheet. Repeat the process for all sheets, until each sheet contains only the data you want to display on that worksheet.


HOW TO SOLVE 'C' problem?

1. write a 'c' program to read 4(four)numbers from a file 'BANK' and calculate the average of the numbers.Now print the calculated average in another output file 'AVERAGE' 2. write a 'c' program that finds the sum and average of inputted five integer numbers of the array using dynamic memory allocation function malloc(). 3. write a 'c' program to create simple elements 1,2,3,4 in the link list of 4(four)nodes and display the list's elements. 4. write a 'c' program to convert the expression (A+B)/(C+D) into postfix expression into stack.and then evaluate it for A=10,B=20,C=15,D=5 and display the stack status after each operation. 5. write a 'c' programto create a linked list implemented on an array containing the following numbers:1,2,3,3,3,4,4,9 and pack it to remove the duplicate numbers.so that only the following data are contained by the nodes:1,2,3,4,9


How does a tally chart help you to display data?

Each one. On A tally chart represents 1 Each. Number Represents 5 make. A tally chart