01-preliminaries/preliminaries.cpp
float* func_returning_array(int *n)
{
    int some_number = 20;
    *n = some_number;

    float* f = (float *)calloc(some_number,sizeof(float));
    assert(f != NULL);

    return f;
}
// Below code will not compile. Why ?
/*
void modify_array_func_2(const int *x,int n)
{
    for(int i = 0 ; i < n ; i++)
        x[i] = i*i;
}
*/
Below code will not compile. Why .
Below code will not compile . Why .
float* func_returning_array(int *n)
{
    int some_number = 20;
    *n = some_number;
    float* f = (float *)calloc(some_number,sizeof(float));
    assert(f != NULL);
    return f;
}
float * func_returning_array ( int * n ) { int some_number = 20 ; * n = some_number ; float * f = ( float * ) calloc ( some_number , sizeof ( float ) ) ; assert ( f != NULL ) ; return f ; }
Below code will not compile.
Below code will not compile .