What is the output of the following program and please


Question: Consider the subsequent code:

A) : What is the output of the following program and please explain it how did you get the answer or the output and the reason. void f(int i ) { if ( i = 4 ll i = 5 )/ Line 1 { cout << " TRUE!!!! " ; } } int main () { f(10); f(11); f(12); return 0; }

B) : change Line 1 to if( ( i = 4 ) II ( i = 5)) now, what is the output .

Can somebody provide the answer and please show it fully step by step?

 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: What is the output of the following program and please
Reference No:- TGS0951388

Expected delivery within 24 Hours