Determine the set of inputs that will lead to SIGFPE (floating point exception) being triggered in following C program?
#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { if(argc != 3 || !atoi(argv[2])) return 1; return abs(atoi(argv[1])) / atoi(argv[2]); }
Input: arr = {'a', 'b'}, length = 3
Output: aaa aab aba abb baa bab bba bbb
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all ??