22.
Nvidia technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What is the Output on a Linux Host?**
Different compilers and host OS behaviors affect how a C program can execute. The following program was compiled with GCC and executed in a Linux host. What happens when the following program is executed?
int main(void)
{
char *s = "hello world";
*s = 'H';
}
Pick ONE option
Show answer & explanation
Answer: A. A) SIGABRT signal is sent
Standard evaluation according to engineering and computational science principles.
Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.