68.2k views
1 vote
Escoja la respuesta correcta para llenar el blanco. In C++ a block boundary (or scope) is defined with a pair of _________ braces {} parentheses () quotes ' ' brackets []

User Riveascore
by
6.7k points

1 Answer

5 votes

Answer:

braces {}.

Step-by-step explanation:

In c++ we can define the boundary of a block by using a pair of braces{}.

Parenthesis are used to declare arguments in the function definition.

quotes ' ' are used to define a character type variable.

[] brackets are used to define the size of the array.

for ex:-

#include<iostream>

using namespace std;

int main()

{ //line 1

int a;

for(int i=0;i<a;i++)

{ //line 2

int b=a+1;

cout<<b<<" ";

} //line 3

return 0;

} //line 4.

The boundary of main function is from line 1 to line 4 and the boundary of for loop is line 2 to line 3.

User Khanal
by
7.1k points