<u>Explanation:</u>
Hey there! you need not to panic about it ,your program didn't have Driver program i.e main program! the correct & working code is given below:
// C++ program to count even digits in a given number .
#include <iostream>
using namespace std;
// Function to count digits
int countEven(int n)
{
int even_count = 0;
while (n > 0)
{
int rem = n % 10;
if (rem % 2 == 0)
even_count++;
n = n / 10;
}
cout << "Even count : "
<< even_count;
if (even_count % 2 == 0 )
return 1;
else
return 0;
}
// Driver Code
int main()
{
int n;
std::cin >>n;
int t = countEven(n);
return 0;
}
It is used to repeat any block of code multiple times (iteration)
Answer:
b. typically contain more circuits in the network than in star or ring networks
Explanation:
In mesh architecture, all computers are connected to each other. In mesh all nodes connect directly and non hierarchical to each other so as to efficiently route data.
Mesh combines the benefits of both ring and star networks. It usually provide relatively short routes through the network (compared to ring networks) and provide many possible routes through the network to prevent one circuit from becoming overloaded (as compared to star network). Mesh network uses decentralized routing with each network performing its own routing.
Mesh network typically contain more circuits in the network than in star or ring networks and are more expensive than ring networks
Advntage:
provides CPU scheduling, memory management, file management, and other operating system functions through system calls. The other one is that it is a single large process running entirely in a single address space.
Disadvantage: if anyone service fails it leads to an entire system failure