what is the difference between definition and declaration?
give me some examples.

Answer Posted / code00002

A declaration introduces an identifier and describes its
type, be it a type, object, or function. A declaration is
what the compiler needs to accept references to that
identifier. These are declarations:

extern int bar;
extern int g(int, int);
double f(int, double); // extern can be omitted for function
declarations
class foo; // no extern allowed for class declarations

complete on http://answerwale.co.cc/?p=39#comment-23

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how are 16- and 32-bit numbers stored?

773


Why can arithmetic operations not be performed on void pointers?

582


What is an array in c?

582


Explain a pre-processor and its advantages.

611


What is c system32 taskhostw exe?

577






What is the difference between if else and switchstatement

1305


What are the different types of control structures?

576


How can you increase the size of a dynamically allocated array?

636


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

646


What is the function of multilevel pointer in c?

665


What are the 3 types of structures?

558


What is a node in c?

541


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1484


How can I recover the file name given an open stream?

545


How do I round numbers?

588