Click here to Skip to main content
15,906,708 members

Comments by Member 13922884 (Top 32 by date)

Member 13922884 2-Sep-18 10:51am View    
Ohh.. my bad. I got your point. Thanks a lot.
Member 13922884 2-Sep-18 9:44am View    
Should *p be not replaced with its value it is referring to?
When executed does it not go as case 5: ... ?
Member 13922884 2-Sep-18 8:21am View    
Thankyou.
Member 13922884 16-Aug-18 12:23pm View    
Ok. Thanks again.
Member 13922884 16-Aug-18 10:21am View    
main ()
{
int a=10,b=0,c=7;
If (a?b:c==0)
Printf ("1");
If ((a?b:c)==0)
Printf ("2");
}

In this program brackets are used to evaluate ternary operator before "==" operator. So here i can understand the usage of (). But not in the above program.