Can we type cast a char * to int * in c?
it will give compile time error.
it will crash at run time.
we can convert, but we have to make sure we are accessing valid address after converting, else it may crash or fetch garbage value.
yes, but it always fetches garbage value if we do so.
Back To Top