C-04 Programming Comments,Variables and Basic Types

preview_player
Показать описание
Each variable in C has an associated data type. Each data type requires different amounts of memory and has some specific operations which may be performed over it. allow us to briefly describe them one by one:

Following are the samples of some quite common data types utilized in C:
char: the foremost basic data type in C. It stores one character and requires one byte of memory in most compilers.
int: because the name suggests, an int variable is employed to store an integer.
float: it's wont to store decimal numbers (numbers with floating point value) with single precision.
double: it's wont to store decimal numbers (numbers with floating point value) with double precision.

Comments are utilized in a programing language to document the program and remind programmers of what tricky things they only did with the code, or to warn later generations of programmers cursed with maintaining some spaghetti code. While comments could seem to be a minor issue during a language, a clumsy comment format during a language may be a nuisance and may be a source of nasty errors. The content of a comment is handled as if it weren't there by the compiler.
We have two sorts of comments here, the end-of-line comment and therefore the block comment. An end-of-line comment terminates at the top of the road . A block line comment features a terminator and may continue for several lines, or be but one line.
Comments were called REMarks in BASIC. COBOL used a NOTE among other sorts of comments.

Zeedup Course:
Рекомендации по теме