How can you determine the maximum value that a numeric variable can hold?



How can you determine the maximum value that a numeric variable can hold?..

Answer / Sarita

In C, the maximum value that a numeric variable can hold depends on its data type. For instance, the maximum value for an 'int' is 2147483647 (2^31-1), and for a 'long int', it's 9223372036854775807 (2^63-1). You can find the maximum values for other data types in the documentation of your C compiler.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

In CMM or CMMI certified organizations,we assess only the standard software processes of the organization. We do not assess the organizations other functional departments like HR or Admin. Then how can we certify the entire organization as CMM level company?? We have assessed only software related activities. Right. There is no relation with other departments like Accounts, HR or Admin. Then how can we claim that the whole company is a CMM certified company?

1 Answers   Melstar,


What is bin sh c?

1 Answers  


Explain about the constants which help in debugging?

1 Answers  


How to add two numbers with using function?

4 Answers  


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1 Answers   Gamesa, Satyam,


What is structure packing ?

2 Answers   HP,


how to go with this?

1 Answers   Wipro,


What does c mean in basketball?

1 Answers  


#include<stdio.h> int main() { int a[3][3][2]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18}; printf("%d\n",*(*(*a+1)); return 0; } What will be the output of the above question? And how?

1 Answers   Groupon,


What are preprocessor directives?

1 Answers  


#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output?

6 Answers   Ramco,


can we have joblib in a proc ?

1 Answers  


Categories