Answer:
C++ code explained below
Explanation:
SOURCE CODE:
*Please follow the comments to better understand the code.
#include <stdio.h>
int numOfBytes(char* string)
{
// initialise the variables
int i=0,size=0;
// while the string reaches to \0, repeat the loop.
while(string[i]!='\0')
{
// add that size
size += sizeof(*string);
// increase the i value.
i++;
}
// add 1 byte for \0
size = size+1;
return size;
}
int main() {
char name[]="Praveen Kumar Reddy";
printf("The size is %d bytes.",numOfBytes(name));
return 0;
}
=============
Answer:
D)
Explanation:
A web community, also known as an online community, is a community made up of members who comment, post, advice and collaborate on discussions of common interest, by communicating through the internet. It is a virtual community.
Examples of online communities include social networking sites, forums, email, discussion boards etc.
The web community can become a global community in the sense that, members can come from any geographical region with access to the internet, around the world. A web community may have members from New Zealand, Switzerland, United States, United Kingdom, Nigeria, China etc.
An internet connection is required to join a web community. You can join an online community after registering by filling out forms and accepting to abide by the rules and regulations guiding members. Non-members are allowed to contribute to discussions in some web communities but might not benefit from several privileges accorded members.
Answer:
Explanation:
Nonprofit organizations may have more possibilities to remain ethical because their work is not aimed at capital, but at the welfare of something or some situation.
When money is not involved in organizations, things become more honest and simple.
Usually people involved in nonprofit organizations have a different worldview and want to change reality.
In a non-profit organization, a social good is sought, as opposed to an organization that aims at money, but there are people who only use non-profit organizations as status.
Even though the environment aiming at a change in reality can become a work without ethics and that breaks the social rules.
What makes people truly ethical are people, a for-profit organization can be a more ethical environment than a non-profit organization.
Answer:
Output of the given code is: 10 20 30.
Explanation:
Here in function find(int a, int& b, int& c), three parameters are passed, firstis passed by value and rest are passed by reference. When a parameter is passed by value, the any changes made by the other function doesn't reflects in the main function.And when a value is passed by reference, then any changes made by other function will reflects in the main function also.
Here find is called with (10,20,25).So in the function, c=a+b i e. c=10+20.Here b,c are passed by reference. So any change in b,c will change the value of y,z in main. temp=10,then a=b i.e a=20, and b=2*temp That is b=2*10.Here value of a=20, b=20 and c=30.Since b,c are passed by reference then it will change the value of y, z in main function but a will not change the value of x.
Hence the value of x=10, y=20 and z =30 after the function call.
Answer:
Firstly if that device is allowed in that country. Going to another country can be cool, provided that the restrictions are known. Certain countries don't allow the sale or use of certain digital products. To be sure of that digital device is allowed, Michael and Ryan should check the custom services of that country
Secondly, is the setup of the didgital devices. For example, Michael wants to use a GPS in the event. Then he needs to be sure whether the GPS is compatible with the new country or not. There can be varius problems in the GPS, most notably the time and the location.
Lastly, if they are relaxing, say watching funny videos on TV language shouldn't be a barrier.
Explanation:
Hope this helps... pls vote as brainliest