% = Shift + 5
Example:
printf ("7%%3=%d\n", 7%3);
result: 7%3=1
one more thing this operator works only with integer type numbers not floating numbers.
+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C
The statement p z in c code is a syntax error. The p is an identifier, and so is the z. They cannot be typed tyogether like that unless an operator is placed between them, such as p + z.
exp1? exp2: exp3
It was designed to have a familiar syntax for programmers who already know C or C++, while removing some of the complex or error-prone features of C++, like pointers and multiple inheritance, to make it simpler and safer.
The Java language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities
+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C
Conditional Operator- Its the only ternary operator in c/c++.- Its syntax is-(condition)?statement1:statement2;-Shruti Jain
+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C
for(i=0;i<=0;i++)
The syntax... go learn it!
The statement p z in c code is a syntax error. The p is an identifier, and so is the z. They cannot be typed tyogether like that unless an operator is placed between them, such as p + z.
It was designed to have a familiar syntax for programmers who already know C or C++, while removing some of the complex or error-prone features of C++, like pointers and multiple inheritance, to make it simpler and safer.
The ++ in C++ refers to the postfix increment operator (operator++()). It's literal meaning is "the successor to C", in reference to the C language upon which the C++ language is based.
There is no memory management operator in C++ -- it is an unmanaged language. You use the C++ new operator to allocate memory, and use the C++ delete operator to release previously allocated memory.
you have to give a statement in the following syntax datatype variable;
exp1? exp2: exp3
The Java language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities