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

Answer Posted / pavithra

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

Is This Answer Correct ?    24 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is const volatile variable in c?

552


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4469


When is a void pointer used?

661


Explain what is the difference between functions abs() and fabs()?

595


What are the primitive data types in c?

548






How can a process change an environment variable in its caller?

623


What is string concatenation in c?

544


What are different types of variables in c?

551


What is a char in c?

534


Explain is it valid to address one element beyond the end of an array?

705


Can two or more operators such as and be combined in a single line of program code?

786


I heard that you have to include stdio.h before calling printf. Why?

567


Process by which one bit pattern in to another by bit wise operation is?

594


What is the difference between if else and switchstatement

1285


What are terms in math?

561