Labels

Random tips

1) finding the size of an array


int arr[] = {1,2,3,4,5};
int size = sizeof(arr)/sizeof(int);

2) returning a string from a function

the only way to return a string from a function is either you get the string using malloc or declare static char* rather than just char* as after returning the function's local variables will be destroyed