What will be the result of the following statement?
int b[2] = { 1, 2 }; cout << b[2];
Select one:
a. The statement will induce integer overflow.
b. The statement will induce array out of index.
c. The statement will run correctly.
d. The statement has an incorrect syntax.
Answers
Answered by
0
option b is correct okk
Answered by
2
The correct answer is option (d.) The statement has an incorrect syntax.
Explanation:
- The statement has an incorrect syntax will be the result of the following statement- int b[2] = { 1, 2 }; cout << b[2].
- Incorrect syntax near …''
- That typically means you have used the wrong syntax for the query.
- This happens mostly when someone switched from one relational database to another relational database, from MySQL to MS SQL Server for example.
- So the solution is to search for the right query and replace it.
Similar questions
Social Sciences,
7 months ago
Hindi,
7 months ago
History,
1 year ago
English,
1 year ago
English,
1 year ago
Computer Science,
1 year ago