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.

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

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.

// AHF C PROGRAM SOLVING //solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int x1,x2,y1,y2; float res=0; pf("\nEnter the value of first point ( x1 and y1 ) : "); scanf("%d %d",&x1,&y1); pf("\nEnter the value of second point ( x2 and y2 ) : "); scanf("%d %d",&x2,&y2); res=sqrt(pow((x2-x1),2) + pow((y2-y1),2)); pf("\nThe distance between two point is = %f",res); return 0; }

Enter the value of first point ( x1 and y1 ) : 4 6

Enter the value of second point ( x2 and y2 ) : 9 3

The distance between two point is = 5.830952

Enter the value of second point ( x2 and y2 ) : 9 3

The distance between two point is = 5.830952

- A general instruction for cleaning room by a robot
- Input any number and find color name
- Given four co-ordinates and find the area of a rectangle
- Given number is square able or not
- Enter positive number and convert negative number and vice versa
- Profit or loss on selling goods
- Calculate area and circumference of circle
- In a integer, count digits,sum of digits,reverse the integer and print even and odd digits of the integer
- Find the basic salary, facilities on total salary except tax
- Calculate roots of quadratic equation
- Solve simple formula solution

© 2018 - All rights reserved