What will be the value of ans after the following code has been executed? int x = 90,y = 55,ans = 10;
If ( x == y) ;
Ans *= 2;
A) 10
B) 145
C) 20
D) No value,there is a syntax error
Correct Answer:
Verified
Q3: If chr is a character variable, which
Q7: What will be the value of x
Q9: Which of the following will format .1278
Q10: A flag may have the values
A) 0
Q14: What will be the values of ans,x,and
Q15: To do a case insensitive compare which
Q21: What will be the value of pay
Q33: If str1 and str2 are both Strings,
Q45: What would be the value of bonus
Q46: Which of the following expressions will determine
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents