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

Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

748


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

599


Write the Program to reverse a string using pointers.

618


What are all different types of pointers in c?

579


what is uses of .net

1277






#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

666


What is binary tree in c?

623


Is c is a middle level language?

597


what is a function method?give example?

1914


differentiate built-in functions and user – defined functions.

628


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

731


What is struct node in c?

621


What is signed and unsigned?

646


Is sizeof a keyword in c?

584


How many parameters should a function have?

668