How does variable declaration affect memory?



How does variable declaration affect memory?..

Answer / glibwaresoftsolutions

The type of data contained in that variable determines how much memory has to be allocated or reserved.
If a variable is designated as "integer type," for instance, 32 bits of memory storage will be set aside specifically for that variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write a program to display the numbers having digit 9 in the given range from 1 to 100

1 Answers  


How pointers are declared?

0 Answers  


whitch value return void main?

11 Answers  


write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

1 Answers   Bosch, College School Exams Tests,


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

0 Answers   ADP,


How many parameters should a function have?

0 Answers  


write a program to find the frequency of a number

4 Answers   Infosys,


Explain can static variables be declared in a header file?

0 Answers  


Is javascript based on c?

0 Answers  


how to go with this?

1 Answers   Wipro,


What are conditional operators in C?

0 Answers   Adobe,


What is union in c?

0 Answers  


Categories