If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
Answer Posted / padmas
The above line of the code gets executed using the C++ program, the output will give 10 as value of b at the prompt. It will process the b+=(5%7*2), as b values is already given as 6 then it will add, to the assigned value to the result got from the expression. if properly syntaxes and executed the program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a class in oop?
What is the full form of oops?
What is encapsulation and abstraction? How are they implemented in C++?
What is methods in oop?
What is the importance of oop?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Why oops is important?
Where You Can Use Interface in your Project
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
Why do we use polymorphism in oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is pure oop?
write string class as your own class in java without using any built-in function
What are the 4 pillars of oop?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?