User Tools

Site Tools


cplusplus:c_vs._c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cplusplus:c_vs._c [2016/04/21 23:17] – [Dynamic memory is different] mithatcplusplus:c_vs._c [2016/04/21 23:35] – [Structs] mithat
Line 78: Line 78:
 ===== Named constants and macros ===== ===== Named constants and macros =====
   * ''const'' is available only in newer versions of C.   * ''const'' is available only in newer versions of C.
-  * ''#define'' precompiler directive typically used instead for named constants.<code c>+  * ''#define'' precompiler directive typically used instead.<code c>
 #define PI 3.1415 #define PI 3.1415
 #define TAX_RATE 0.065 #define TAX_RATE 0.065
Line 98: Line 98:
 </code> </code>
 ===== Structs ===== ===== Structs =====
-  * You must use ''struct'' keyword when defining ''struct'' variables.<code c>+  * You must use the ''struct'' keyword when defining ''struct'' variables.<code c>
 struct MyStruct struct MyStruct
 { {
cplusplus/c_vs._c.txt · Last modified: 2016/04/22 01:10 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki