Answer:
This statement is correct.
Explanation:
If a function does not have any parameters, then we can create the variable inside the function which will be private and call the function from the main function.
If we specify any return type like int, float or char, etc then we need to declare a return value from the function.
But If we specify the Void then we don't need to return value inside the function, we can directly print the value inside function.
Ex.
void add()
{
int a=7;
int b=9;
int c=a+b;
System.out.println("the added value is :"+c);
}
Answer:
Program is as follow:
Explanation:
#include<iostream.h>
#include < conio.h>
bool isVowel(char b)
{
return
( b=='a' || b=='A' || b=='e' || b=='E' || b=='i' || b=='I' || b=='o' || b=='O' || b== 'u' || b=='U');
For swaoing the vowels
string reverseVowel ( String str)
{
int j = 0;
string v ;
for ( int i= 0 ; str [i]]!='0'; i++)
if( isv(str[i]))
v[j++] = str[i[;
for ( int i = 0; str[i]! = '0' ; i++
if ( isv (str[i]))
str{i} = v [--j]
return str;
}
int main ()
{ string str = " Programming";
cout<<swapv(str);
return 0 ;
}
Can you post the answers plz
Answer:
C++ Program to Find Area and Circumference of a Circle
Area of Circle = PI X Radius X Radius. Where, Where PI is a constant which is equal to 22/7 or 3.141(approx)
Circumference or Circle = 2 X PI X Radius.
Circumference or Circle = PI X Diameter.
Explanation:
Answer:
Disadvantages:
1. A division may feel separated from the parent company because it has too much independence
2. This feeling of separation may lead to the division only worrying about meeting it's goals and objectives and not the companies as a whole
3. This system may be more expensive to operate and cannot share resources with other divisions
Explanation: