CS1501 Q1) In C, array name by default holds the address of the first location. You should change "scanf("%s", &s)" by "scanf("%s", s)". Why did you open and close the same file multiple times (3 times) ? Program is not complete Q2) Area calculation is wrong CS1502 Q1) Either you need to open the file in "r" or "a+" mode. "a" mode is used only for appending not for reading. New line is represented by '\n' in C At the end of each string you need to add '\0' Q2) Should check boundary conditions (n = 0 or 1, getting segmentation fault) CS1504 Q1) Compilation error Q2) Compilation error Segmentation fault (Arithmetic exception, divided by 0) CS1505 Q1) You have to calculate the no. of words and the length of each word in program sort function is not correct CS1506 Q1) Try to avoid file open and close multiple times CS1507 Q1) Segmentation fault (while reading from a file and writing to a file) Replace void main() by int main() please At the end of each string you need to add '\0' Used wrong index variable (j instead of k) Please use strcpy for copying string Q2) Replace void main() by int main() please b,c -> logic is not correct CS1508 Q1) Segmentation fault fprintf(S[k],"%s",c) is not correct, you have to give the file name as first argument CS1509 Q1) Please use strcpy for copying string You should take the file name as input Should add comments CS1510 Q1) Please use stdlib.h header for using calloc function Segmentation fault Should initialize line by 0 CS1513 Q1) fseek's arguments are wrong New line is represented by '\n' in C You need to write the function for sorting CS1514 Q1) Sorting function is not correct Q2) b,c -> Calculations are not correct Should add more comments CS1515 Q1) Why did you assume that the no. of words cannot be more than 40? CS1516 Q1) Good Q2) Area calculation is wrong CS1517 Q1) Compilation error You should take the file name as input Q2) Should check boundary conditions (n = 1, getting segmentation fault) Segmentation fault Should add comments CS1518 Q1) Compilation error Q2) Compilation error CS1519 Q1) Segmentation fault Q2) while loop in isConvex method is a infinite loop (should remove the else part) triangleArea calculation is wrong CS1520 Q1) Sorting function is wrong Q2) Should check boundary conditions (n = 0 or 1, getting segmentation fault) void main should be replaced by int main Segmentation fault (for boundary condition violation in loop) Programming habits need to be improved. Should add more comments CS1522 Q1) Segmentation fault You should calculate the no. of words and the length of each word Q2) The data type for points, area should be double (not int) The output is wrong (in area calculation) CS1523 Q1) Program is not terminating Q2) Should check boundary conditions (n = 0 or 1, program is not terminating) Programming habits need to be improved, should put printf statement before takeing any input Indentation needs to be improved CS1524 Q1) Segmentation fault CS1525 Q2) Should check boundary conditions (n = 0 or 1, getting segmentation fault)