Semoclone ( ; ) is one of the best sensitive symbols in programming. Placing a semicolon ( ; ) after the WHILE or FOR loop is not a syntax error. So it will not be reported by the compiler. However, it is considered to be a logical error as it change

The test expression done on exact statement. The good habit of using test expression on exact or fulfill statement. So do not use floating point numbers for checking for equality in the test expression.

Missing the inclusion of appropriate header file in c program will generate an error. Such a program may compile but the linker will given an error message as it will not be able to find the functions used in the program.

When you are using SWITCH case, it is important to keep in mind that the inclusion of DEFAULT LABEL. This will inform you whether you are executing your program in right or wrong way. So, it is always recommended to use DEFAULT LABEL in the SWITCH st

Specifier is a typedef-name and a very sensitive in C programming. Using an incorrect specifier for the data type being read or written will generate a run time error.

// AHF C PROGRAM SOLVING //solving here 2_D ARRAY programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int man[5][3],i,j,total_sales=0,pos; // INPUT DATA pf("ENTER DATA."); for(i=0;i < 5;i++) { pf("\n"); pf("\nEnter the sales product of 3 items by salesman %d :\t",i); for(j=0;j < 3;j++) scanf("%d",&man[i][j]); } //PRINT TOTAL SALES BY EACH SALESMAN for(i=0;i < 5;i++) { total_sales=0; for(j=0;j < 3;j++) total_sales+=man[i][j]; pf("\nTotal product sales by salesman %d = %d",i,total_sales); } //TOTAL SALES OF EACH ITEMS for(i=0;i < 3;i++) { total_sales=0; for(j=0;j < 5;j++) total_sales+=man[j][i]; pf("\nTotal sales of item %d = %d",i,total_sales); } return 0; }

Enter the sales product of 3 items by salesman 0 : 12 23 32 Enter the sales product of 3 items by salesman 1 : 14 25 36 Enter the sales product of 3 items by salesman 2 : 41 52 36 Enter the sales product of 3 items by salesman 3 : 71 85 93 Enter the sales product of 3 items by salesman 4 : 79 46 13

Total product sales by salesman 0 = 67 Total product sales by salesman 1 = 75 Total product sales by salesman 2 = 129 Total product sales by salesman 3 = 249 Total product sales by salesman 4 = 138

Total sales of item 0 = 217 Total sales of item 1 = 231 Total sales of item 2 = 210

- Array 2_D - read and display ( 2 * 2 ) matrix
- Array 2_D - subtraction of two ( m x n ) matrix
- Array 2_D - summation of two ( m * n ) matrix
- Array 2_D - transposed matrix
- Array_ sum and mean of N numbers
- Array_ print largest and smallest number with position separately
- Array_ print second largest and smallest number with position separately
- Array_ input N number of digits and form a single number
- Array_ searching
- Array_ find duplicated number and position
- Array_ print whether two array are equal or not

© 2018 - All rights reserved