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.

Not putting // before the start of single statement comment is a compiler error. Not putting the */ after the termination of block comment is a compiler error.

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.

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 //The problem are solving here using FUNCTION

#include<stdio.h> #include<math.h> #define pf printf //function declaration int fact(int); void main() { int x,res; printf("Enter any number: "); scanf("%d",&x); //function call res=fact(x); if(res==1) printf("\n%d is square type integer number.",x); else printf("\n%d is not square type integer number.",x); return 0; } //function definition int fact(int n) //function header //function body { int a; float b; a=sqrt(n); //checking root value b=sqrt(n); //checking root value if(a==b) //checking equality return 1; //if there is no fraction value the output will true else return 0; //if there is fraction value the output will false }

Enter any number: 99 99 is not square type integer number.

Enter any number: 4 4 is square type integer number.

- 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_ insertion
- Array_ deletion
- Array_ merging
- Function_ find divisible number
- Function_ convert given total-time into minutes
- Function_ convert positive to negative and vice versa
- Function_ find if triangle or not
- Function_ general instruction for cleaning room by robot
- Function_ a equation for finding velocity and distance

© 2018 - All rights reserved