Exforsys

Online Training

difference

This is a discussion on difference within the C and C++ forums, part of the Programming Talk category; what is the difference between a 'declaration','declaration proto-type' and 'defination'....


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-27-2006, 11:18 PM
Junior Member
 
Join Date: Nov 2006
Posts: 3
chaisen2006 is on a distinguished road
Unhappy difference

what is the difference between a 'declaration','declaration proto-type' and 'defination'.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-05-2006, 06:38 AM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
When we have declared a variable, we have meant that we have told the compiler about the variable; i.e. its type and its name, as well as allocated a memory cell for the variable .
This latter action of the compiler, allocation of storage, is more properly called the definition of the variable. The stricter definition of declaration is simply to describe information about the variable.
The prototype declaration defines its interface--how the prototype communicates with the rest of the scene and what parameters may be set for each instance of the prototype.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Difference between pentium 3 and pentium... JobHelper Tech FAQ 1 09-25-2008 04:19 PM
difference between winrunner 7./7.6 zecar Software Testing 1 11-13-2006 03:32 AM
Linux vs. Windows web Hosting, does it make a difference? sanereddy Unix Articles and Tutorials 7 04-23-2006 02:39 PM
what is difference between terminal service and remote desktop techguru Interview Questions 1 04-17-2006 09:14 AM
Difference between .jar .war & .ear ajagania Java Tutorials 2 10-21-2004 10:03 AM


All times are GMT -4. The time now is 03:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.