What will be the output of the following code segment?
char myName[] = "Student ID";
int n= sizeof(myName);
cout<<n;
Answers
Answered by
5
Answer:
ok
Explanation:
Answered by
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
Math,
2 months ago
English,
2 months ago
CBSE BOARD XII,
2 months ago
Social Sciences,
4 months ago
World Languages,
10 months ago
Math,
10 months ago