What will be the value of sum when val= 1000
int val , sum, n=750;
sum = n+val > 1750 ? 400 : 200 ;
System.out.println(sum)
Share
What will be the value of sum when val= 1000
int val , sum, n=750;
sum = n+val > 1750 ? 400 : 200 ;
System.out.println(sum)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
1 << val); // checker = checker | (1 << val);
Explanation: