Computer Science, asked by junaidkhanjkofficial, 4 months ago

What will be the output of the following code segment?
char myName[] = "Student ID";
int n= sizeof(myName);
cout<<n;​

Answers

Answered by joelvadodil2007
5

Answer:

ok

Explanation:

Answered by shreya457sl
0

Answer:

The given code will show a compilation error.

Explanation:

The error will be in the line:

cout<<n;​

A compilation error is a condition in which the compiler cannot compile a portion of the source code of a computer program due to a code error or, more rarely, an error in the compiler itself. Compile error messages often help programmers debug their source code. The definition of compilation and interpretation can be ambiguous, but compilation errors are usually only related to static compilation, not a dynamic compilation. However, dynamic compilation can technically cause compilation errors, even if many programmers and sources identify them as run-time errors.

SPJ2

Similar questions