Possible duplicate:What is the difference between a definition and a declaration?
Is it correct that the declaration in C is equal to the one specified in C ++?
int a; /* to declare variabel a in C */ int b = 2; /* to declare and initialize in C */ int c; // to define in C++ int d = 4; // to define and initialize in C++
Not.
For functions, I saw that "declare" is used to write the header, while "define" is used to write the body.
However, this is all natural language. "declare" as you have Example C seems to be correct for C and C ++.
In C, a declaration means to tell the compiler what exists, while a definition assigns it an actual value.
I see no reason why this would be different in C ++
yes it should be
Source: https://habr.com/ru/post/1299314/More articles:recv () with errno = 107: (linked transport point) - c ++Download file from iphone using SFTP - iphoneHow does rspec work with Rails 3 for integration tests? - ruby-on-railsSHOW FIELDS, but with a filter by field type? - mysqlTransferring files over the air using your iPad - cMac OS Screen Capture Using GL_RGB - c ++Is there any systematic way to avoid the "re-entry" problem? (Embedded system) - cProblems with Zend Form decorators - decoratorHow to configure SVN on a web server? - svnCannot create a row of size 8064 that is larger than the valid row size of 8060 - sql-serverAll Articles