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

Answer Posted / r.ramakrishna

Declaration means allocating memory for the variable.
Definition means defining address of the variable in a class.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are runtime error?

852


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

870


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

831


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

889


How can I make it pause before closing the program output window?

798


How can you be sure that a program follows the ANSI C standard?

1382


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2088


Why doesnt that code work?

785


What does the error 'Null Pointer Assignment' mean and what causes this error?

975


what do you mean by inline function in C?

836


Explain what is wrong in this statement?

851


Explain the use of 'auto' keyword

882


How does #define work?

847


Between macros and functions,which is better to use and why?

1811


What is difference between array and pointer in c?

770