aleep3 printf Cataai else if i 0 eleep2 printfCDogs Ln else
aleep(3) printf (\"Cataai else if (i \"\" 0) eleep(2); printfC\"Dogs Ln) else sleep(2); printtC Rainingln\") f functions, and which is not a gramming interface (API). 5. Which of the following is the code for a set of functions, and whic rar; (b) device driver,(co) application programming iace (Ap What is the exact output of the following code? (Hint: a SIGSEGV is on an illegal storage access.) op is generated library, (b) device driver, (c) application pro 6.
Solution
Output of the program
Bad!
--------------------------------------------------------------------
explaination
when i=3 in for loop below statement will be executed
if( x[i-1] > 12.0)
*t = 42.3;
here t is a pointer which is not initialized to any memory address and trying to assign values results in segmentation fault and SIGSEV signal is caught and prints \"Bad\" message..
