Answer:
java: error
C: false
Explanation:
In Java the compiler understand that you are trying to compare an integer (15) with a boolean (10 > 5) this generate the next error:
error: bad operand types for binary operator
In C the compiler convert (15 > 10 > 5) in (15>10) > (10>5) which is equal to TRUE > TRUE, the compiler can also read it as 1 > 1 (since 1 is TRUE and 0 is FALSE). like 1>1 is false then C program return false.
Answer:
#include <iostream>
using namespace std;
class BankAccount {
string name = name;
double balance = balance;
BankAccount( string name, double balance ) {
string name = name;
double balance = balance;
return 0;
}
string getName( ){
return name;
}
double getbalance( ) {
return balance;
void setName( string username){
name = username;
}
void setbalance( double newBalance){
balance = newBalance;
}
int main( ) {
BankAccount user1(John, 0.0);
BankAccount user2(Jane, 0.0);
user1.setbalance( 2300.00)
user2.setbalance( 4300.00)
cout << user1.getname() << user1.getbalance();
cout << user1.getname() << user1.getbalance();
}
Explanation:
The C source code above using a class to create a data structure of a bank account user name and balance. The attribute name and balance are private to the class and can be retrieved and modified through the get and set methods.
D. Large network of roads.
A resembles a modem/router and C a webserver.
Answer:
yes u are trus
Explanation:
mark me as brainliest hehe
Answer:
1.) 25 ; 15 ; 15
2.) 50 ; 15 ; 50
Explanation:
In the first function written :
The variable val was initially decaled or assigned a value of 25 and that was what was printed first.
However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.
For the second code :
From the top:
Val was assigned a value of 50 ;
Hence,
print(val) gives an output of 50
Within the function definition which prints the value of val that is assigned a value of 25 within the function.
Since tbe global variable isnt reset.
Printing Val again outputs 50;since ito is outside the function.