int a,b,c; In this statement,comma is a separator and tells to the compiler that these (a, b, and c) are three different variables. 2) Comma (,) as an operator Sometimes we assign multiple values to a variable using comma, in that case comma is known as operator. Example: a = ...
For example, some C++ Tokens used in a C++ program are: Reserve: words long, do if, else etc. Identifiers: Pay, salary etc. Constant: 470.6,16,49 etc. Strings:“Dinesh”, “2013-01” etc. Operator: +, *, <, >=, &&,11, etc Special symbols: 0,...
5 / 2; // = 2.5 // Bitwise operations also work; when you perform a bitwise operation your float // is converted to a signed int *up to* 32 bits. 1 << 2; // = 4 // Precedence is enforced with parentheses. (1 + 3) * 2; // = 8 // There are special primitive values: ...