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.

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.

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 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.

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 basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int a,b,c; float root1,root2,p1,p2; pf("Enter the value of a,b and c: "); scanf("%d %d %d",&a,&b,&c); p1= pow(b,2)-(4*a*c); p2=2*a; if(p1>0) { pf("\nREAL ROOTS."); root1=(-b+sqrt(p1))/p2; root2=(-b-sqrt(p1))/p2; pf("\nROOT1= %f\tROOT2= %f",root1,root2); } else if(p1==0) { pf("\nEQUAL ROOTS."); root1=-b/p2; pf("\nROOT1= %f",root1); } else pf("\nMIGENARY ROOTS."); return 0; }

Enter the value of a,b and c: 2 3 6

MIGENARY ROOTS.

Enter the value of a,b and c: 1 3 2

REAL ROOTS.

ROOT1= -1.000000

ROOT2= -2.000000

MIGENARY ROOTS.

Enter the value of a,b and c: 1 3 2

REAL ROOTS.

ROOT1= -1.000000

ROOT2= -2.000000

- Calculate area of a triangle
- Calculate area of a rectangle
- Calculate area of a rectangle, triangle and circle
- Bonus on employment salary
- Print even or odd number
- Leap year
- Input any key from key-board and display key's feature
- Find large number of two or three given numbers
- Print ASCII value of a character and number
- Print all ASCII value
- Print vowel or consonant
- Find is the given number positive, negative and zero
- Summation, Subtraction, Multiplication and division
- Distance between two point
- Swap two numbers
- Temperature Conversion from Fahrenheit to Celsius to Kelvin and Vice versa

© 2018 - All rights reserved