Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the program ? #include<stdio.h> int main() { char str = "IndiaBIX"; printf("%s\n", str); return 0; } ?->(Show Answer!)
1. What will be the output of the program ? #include<stdio.h> int main() { char str = "IndiaBIX"; printf("%s\n", str); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
The line char str = "IndiaBIX"; generates "Non portable pointer conversion" error. To eliminate the error, we have to change the above line to char *str = "IndiaBIX"; (or) char str[] = "IndiaBIX"; Then it prints "IndiaBIX".