Write a simple program to find the size of different basic
data types in C.

Answer Posted / jugad

#include
#include
int main()
{
printf(“%d %d %d %d”,sizeof(int),sizeof(unsigned
int),sizeof(float),sizeof(char));
getch();
return 0;
}

courtesy:http://answerwale.co.cc/?p=23

Is This Answer Correct ?    21 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare interpreters and compilers.

631


What are variables and it what way is it different from constants?

773


Are pointers really faster than arrays?

552


What is meant by initialization and how we initialize a variable?

577


What is cohesion and coupling in c?

581






What is array of structure in c?

586


What is the difference between mpi and openmp?

723


How can I do peek and poke in c?

609


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1109


Can we assign string to char pointer?

576


What are the keywords in c?

636


What is the use of header?

610


Is c pass by value or reference?

584


What is a node in c?

541


Explain built-in function?

583