What happens when the following program is validated? void main() { void ptr = (void) malloc(sizeof(void)); ptr++ ; }
CompilationFails
Will Throw RunTime Error But Code will get Compiled
Throws Linker Error
All the above statements are invalid