How does variable declaration affect memory?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3972


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1798


Difference between Shallow copy and Deep copy?

1791


Explain union. What are its advantages?

825


What is the g value paradox?

860


How do I determine whether a character is numeric, alphabetic, and so on?

870


Explain main function in c?

859


Which is best linux os?

770


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2251


How will you delete a node in DLL?

946


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

2004


What does %d do?

959


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

871


Why shouldn’t I start variable names with underscores?

843


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

850