Important features and of C programming language
- Function prototype declaration. Like declaring a variable in java, you can also declare a function. It is useful if you are going to call the function before the definition of the function.
- C has pointer operator.
- C doesn't have a string data type. Instead we can use char array.
- Structure is a custom data type. It's kind of an "object".
"%lf"
to format double
"%.2f"
to format float with 2 digit after a comma.
"%d"
to format an integer.
- Store only positiv integer value:
unsigned int a;
int A[4], printf("%d\n", A);
will return the base address (Address of first element)
int A[4]; A[0] = 3; printf("%d\n", A*);
will return the value of the first element.
- Casting an Array to a pointer, now you can access the element without brackets