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

The iterative statement is one of the most important and interesting statements in the programming world. An iterative statement is used to repeat the execution of a list of statements, depending on the value of an integer expression.

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.

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

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

#include<stdio.h> #include<math.h> #define pf printf #define N 100 //at a time defining array size int main() { int arr1[N],arr2[N],n1,n2,i,j,flag=0; //taking first array size pf("Enter the number of element in the first array: "); scanf("%d",&n1); //taking the element of the first array pf("\nEnter the array element: "); for(i=0;i < n1;i++) scanf("%d",&arr1[i]); //taking the size of the second array pf("\nEnter the number of element in the second array: "); scanf("%d",&n2); //taking the element of the second array pf("\nEnter the element of the second array: "); for(i=0;i < n2;i++) scanf("%d",&arr2[i]); //testing area starts //checking the equality if(n1!=n2) { pf("\nThe two array are not equal."); } else { //checking the equality of two array element for(i=0;i < n1;i++) { if(arr1[i]!=arr2[i]) //that if every element is equal then the statement is true { flag=1; break; } } if(flag==0) pf("\nThe two array are equal."); else pf("\nThe two array are not equal."); } return 0; }

Enter the number of element in the first array: 5 Enter the array element: 1 2 3 4 5 Enter the number of element in the second array: 5 Enter the element of the second array: 1 2 3 4 6 The two array are not equal.

- Array_ sum and mean of N numbers
- Array_ find largest of N numbers
- Array_ print the smallest of N numbers
- Array_ interchange large and smallest number
- Array_ print largest and smallest number with position separately
- Array 2_D - calculate marks of 5 students in 3 subject and display the highest marks in each subject
- Array 2_D - read and display ( 3 * 3 ) matrix
- Array 2_D - multiplication of two ( m * n ) matrix

© 2018 - All rights reserved