endl or ‘n’ at the end?
I have seen many people who have used std::endl or ‘n’ at the end of their output in computing olympiads, even though a newline is not needed.
dump data on C# like PHP
In PHP you can dump a variable data like:
Find the output of the programme: printf(“%d, %d, %d”, ++a + ++a+a++, a++ + ++b, ++d + d++ + a++)
#include <stdio.h> int main() { int a = 1, b = 1, d = 1; printf(“%d, %d, %d”, ++a + ++a+a++, a++ + ++b, ++d + d++ + a++); } ++a + ++a+a++ –> 2+3+3=7 with a=4 a++ + ++b –> 4+2=6 with a=5, b=2 ++d + d++ + a++ –> 2+2+5=9 So output will […]