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

How can I prevent another program from modifying part of a file that I am modifying?

858


What is dynamic memory allocation?

1093


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2126


What is static memory allocation?

876


When we use void main and int main?

835


What is wild pointer in c?

836


Describe the difference between = and == symbols in c programming?

1043


What is array within structure?

869


How can you find the day of the week given the date?

888


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1737


What is 1f in c?

2328


Tell us something about keyword 'auto'.

865


what does static variable mean?

872


Can main () be called recursively?

902


What is the difference between char array and char pointer?

798