Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the following program in 16 bit platform assuming that 1022 is memory address of the string "Hello1" (in Turbo C under DOS) ? #include<stdio.h> int main() { printf("%u %s\n", &"Hello1", &"Hello2"); return 0; } ?->(Show Answer!)
1. What will be the output of the following program in 16 bit platform assuming that 1022 is memory address of the string "Hello1" (in Turbo C under DOS) ? #include<stdio.h> int main() { printf("%u %s\n", &"Hello1", &"Hello2"); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
In printf("%u %s\n", &"Hello", &"Hello");. The %u format specifier tells the compiler to print the memory address of the "Hello1". The %s format specifier tells the compiler to print the string "Hello2". Hence the output of the program is "1022 Hello2".