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

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2062


Explain the difference between #include "..." And #include <...> In c?

764


What are the data types present in c?

810


How do I swap bytes?

802


How will you divide two numbers in a MACRO?

874






How do you determine the length of a string value that was stored in a variable?

832


What are the types of unary operators?

838


What are header files and what are its uses in C programming?

807


What are the types of variables in c?

731


How do you determine whether to use a stream function or a low-level function?

871


what is different between auto and local static? why should we use local static?

840


Explain 'bit masking'?

809


What does the message "automatic aggregate intialization is an ansi feature" mean?

888


What are the advantages and disadvantages of c language?

740


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2835