English, asked by jayapauljp543, 4 days ago

A programme mistake writes 'get' instead of the keyword 'for' used in hopes while writing a program in C++,what will the results is​

Answers

Answered by rolosho
4

Answer:

function factorial(n)

{

                                               if( n equals 1)

                                                               return 1

                                               else

                                                                - - MISSING STATEMENT - -

                                               end

                               }

Explanation:

Answered by sourasghotekar123
0

Answer:

A program mistake writes 'get' instead of the keyword 'for' used in hopes while writing a program in C++, the results will be error. (while execution)

The code would not compile.

Explanation:

  • An error is an illegal operation performed by the user that causes the program to function incorrectly.
  • Errors in programming are frequently undetected until the program is compiled or executed. Some errors prevent the program from being compiled or run.
  • There are three types of Programming Error:
  • There are three types of errors that can occur when developing software: syntax errors, logic errors, and runtime errors.
  • The given situation is the type of syntax errors.
  • Syntax errors are linguistic errors. Syntax errors include missing commas or quotation marks, as well as misspelling words. Syntax errors will be flagged by MATLAB and an error message will be displayed.

#SPJ6

Similar questions