?
Which one of the following is not true about this program?
Which one of the following is not true about this program?
#include<stdio.h>
#include<signal.h>
void response (int);
void response (int signo)
{
printf("%s\n",sys_siglist[signo]);
signal(SIGSEGV,SIG_IGN);
}
int main()
{
signal (SIGSEGV,response);
char *str;
*str = 10;
return 0;
}
#include<stdio.h>
#include<signal.h>
void response (int);
void response (int signo)
{
printf("%s\n",sys_siglist[signo]);
signal(SIGSEGV,SIG_IGN);
}
int main()
{
signal (SIGSEGV,response);
char *str;
*str = 10;
return 0;
}
Join the Discussion
Login to post a comment or share your explanation.
Login