Write a c program to print the sizes and ranges of different
data types in c?



Write a c program to print the sizes and ranges of different data types in c?..

Answer / pavithra

x=sizeof(int);
range=pow(2,x);

Is This Answer Correct ?    24 Yes 15 No

Post New Answer

More C Interview Questions

What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?

3 Answers  


Can we change the value of static variable in c?

0 Answers  


what is c?

4 Answers   IBM, TCS,


why array index always starts from zero??

4 Answers   TCS,


I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

1 Answers  


difference between native and cross compilers

0 Answers  


How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)

1 Answers   iLantus, Subex,


How can I handle floating-point exceptions gracefully?

0 Answers  


write a program to copy a string without using a string?

2 Answers  


i have a written test in tomorrow

1 Answers   NNN, Value Labs,


How can I make sure that my program is the only one accessing a file?

0 Answers  


Write code for initializing one dimentional and two dimentional array in a C Program?

5 Answers   Deshaw, Edutech, GMD,


Categories