jeudi 26 juillet 2018

c how this codes control statement working

i tried this program but it does not give any output

  int i=1,j=2,k=3;
    if(i>j)
       if(i>k)    (this will not get executed)
        cout<<"hello";   (but this should get executed right)
     else
        cout<<"hai";

which if belongs to which else

Aucun commentaire:

Enregistrer un commentaire