language skills or proficiency as a developer List of Standard and Reference Books, Practice Forums, Refrence Websites, Doubt Discussion, Bonus Information
- const
- goto
- register
- restrict
- inline
- sizeof
- extern
- enum
- typedef
- union
- volatile
- static
- struct
- char, int, double, auto, float, long, short
- default, switch, case, else, if, break, continue, return, do, while, for, unsigned, void, signed
' ' '
1 / 10 = 0
1 % 10 = 1
divisor / dividend or divisor % dividend
if divisor is SMALLER than dividend then ' / ' will return 0 as output and ' % ' will return DIVISOR itself
' ' '
examples : 2 % 3 = 2 4 / 45 = 0
2 % 5 = 2 2 / 76 = 0
' ' '
for( initialization ; condition ; updation )
updation can be pre or post unary operator ++i/i++ --i/i-- working will be same
' ' '
scanf("%placeholder",&value);
printf("%placeholder",value);
latest compiler works even if ' & ' not placed before variable in scanf and if by mistake ' & ' is placed before variable in printf for more details link -
range for loop link - std functions list link - non std functions list -
- Main function is necessary. No program is possible without main function in c/c++ but in java it's optional and only requires during execution of program
- Main function cannot be ' void ' in c/c++ it must always return someting