#include<stdio.h>
#include<signal.h>
void suicide();
main()
{
printf("use CTRL \\ for exiting \n");
printf("iiiiiiiiiiiiiis");
//signal(SIGINT,SIG_DFL);
signal(SIGQUIT,suicide);
for (;
;
}
/*void suicide()
{ printf("hello here you r in the suicide code\n ");
}*/
void suicide(int num)
{
printf("hii u r in suicide\n");
}
why the second printf in main is being executed after pressing CTRL \ . the iiiiiiiis is being printed only after i m pressing CTRL \ ,,
#include<stdio.h>
main()
{printf("hello u\n");
printf("hello how r yu again ");
}
while here both the print statements are being executed in one go .. ???