Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 Will the program compile? #include<stdio.h> int main() { char str[5] = "IndiaBIX"; return 0; } ?->(Show Answer!)
1. Will the program compile? #include<stdio.h> int main() { char str[5] = "IndiaBIX"; return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
C doesn't do array bounds checking at compile time, hence this compiles. But, the modern compilers like Turbo C++ detects this as 'Error: Too many initializers'. GCC would give you a warning.