What is diffrance between declaration and defination of a variable or function

Answer Posted / deepak mundhada

1 when we declare a variable it gets memory allocated at
stack in ram.
definition means we are assigning value to that variable.

2 address of variable can be changed but address cant be
changed.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you rename a function in C?

844


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

859


Which function in C can be used to append a string to another string?

952


Tell me what is the purpose of 'register' keyword in c language?

847


Explain what are reserved words?

877


What does #pragma once mean?

960


What is the role of this pointer?

795


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

953


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1701


develop algorithms to add polynomials (i) in one variable

1972


What is the use of getchar() function?

895


What is break statement?

884


Explain what are preprocessor directives?

853


Hai what is the different types of versions and their differences

1755


What is the use of extern in c?

874