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 does *p++ do? What does it point to?

626


How many levels deep can include files be nested?

661


What is property type c?

613


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

681


Explain bitwise shift operators?

642






How do shell structures work?

581


What is the difference between single charater constant and string constant?

632


Write a program to reverse a given number in c?

605


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

618


how many errors in c explain deply

1637


How do I use strcmp?

651


Is c++ based on c?

661


What is #line in c?

572


what is the structure pointer?

1653


What are preprocessor directives in c?

652