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() { int k=1; printf("%d == 1 is" "%s\n", k, k==1?"TRUE":"FALSE"); return 0; } ?->(Show Answer!)
1. What will be the output of the program ? #include<stdio.h> int main() { int k=1; printf("%d == 1 is" "%s\n", k, k==1?"TRUE":"FALSE"); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
Step 1: int k=1; The variable k is declared as an integer type and initialized to '1'. Step 2: printf("%d == 1 is" "%s\n", k, k==1?"TRUE":"FALSE"); becomes => k==1?"TRUE":"FALSE" => 1==1?"TRUE":"FALSE" => "TRUE" Therefore the output of the program is 1 == 1 is TRUE