Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the program (Turbo C in 16 bit platform DOS) ? #include<stdio.h> #include<string.h> int main() { char str1 = "India"; char str2 = "BIX"; char str3; str3 = strcat(str1, str2); printf("%s %s\n", str3, str1); retur ?->(Show Answer!)
1. What will be the output of the program (Turbo C in 16 bit platform DOS) ? #include<stdio.h> #include<string.h> int main() { char str1 = "India"; char str2 = "BIX"; char str3; str3 = strcat(str1, str2); printf("%s %s\n", str3, str1); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
It prints 'IndiaBIX IndiaBIX' in TurboC (in 16 bit platform). It may cause a 'segmentation fault error' in GCC (32 bit platform).