Computer Science, asked by damrita788, 6 months ago

Which of the following operators is used to insert a single space between values in the PRINT statement?​

Answers

Answered by Anonymous
8

Answer:

In C++, whitespace refers to spaces, tabs and newlines. In some places in our code, whitespace is necessary whereas, in other places, it is just given to improve readability. For example, while writing 'int main()', it is necessary to give a space between int and main() (as they are two different words).

int main()

On the contrary, there is no need to give any space in the following statement with the output operator.

std::cout<<"Hello World";

Although we can give as many whitespaces as we want, the compiler ignores all the unnecessary whitespaces. The following code also runs just fine.

int num; - This declares that variable num is an integer. And by this declaration, num enters into the world of our program. So, 'num' is a variable which will store some integer value.

num = 2; - We are assigning 2 to 'num'. So, now the value of 'num' is 2 (an integer).

Here, num is the name of a variable and thus is an identifier. This example was just to give you an idea of identifiers. You will learn about variables in the coming chapter.

C++ is a case-sensitive language i.e., it distinguishes between uppercase and lowercase. For example, num and Num are different identifiers in C++.

Keywords

There are some predefined reserved words in C++ which have their special meaning and thus cannot be used as identifiers. These words are called keywords.

Let's have a look at C++ keywords.

Explanation:

Similar questions