C Language Basics

C Language Basics:C Language Basics :C Language is high level language an c language is developed by Dennis Ritchie for the Unix operating system.
C Language Basics is show below.
C Language Basics 1:#include <stdio.h>:This header file is containing input and output file.If you want use scanf() function for input.Scanf does not work without <stdio.h>.If you want print output on the screen then you use printf() function.Printf () function does not work without <#include<stdio.h>.

C Language Basics 2:Main() function is user defined function.If we want return value then we use int.And we do not return value then we use void.
We start program in main() function.

C Language Basics 3:{ :This is curly brace start.We start write a program after curly brace start.

C Language Basics 4:Comments we use two tpe comment single line and multiple line.
// this comment is single line.
/* */ This is multi line comments.

C Language Basics 5:printf()->This is use print out on the monitor.
C Language Basics 6:scanf()->This is use read value from keyboard.
C Language Basics 7:getch();->This stop screen you see your result on the monitor.

C Language Basics 8:}->This is curly brace End.We end of a program after curly brace end.

C Language Basics 9:Write a program print top21place on the screen.

void main()


C Language Basics 10 : Data type-> we use data type for variable and object.We need integer then we declare int data type.

C Language Basics 11 : CONSTANT ->CONSTANT value does not change in execution time.

C Language Basics 12 : Variable ->We change variable value in execution time.we declare variable of intger,longmstring and boolean.

C Language Basics 13 : Operators -> It is use for logical and mathematical operation.We show 8 type operator.
1.Arithmetic operators ->:It is use for mathematical calculation/for example addition,multiplu,modules,subtraction and division
2.Assignment operators ->It is use assing value in the variable.for example int a=10; we assign ten in a variable.
3.Relational operators ->: It is use compare value in the program.For example >,>-,<,<-,==,!= etc.
4.Logical operators ->Logical operators are used to perform logical operations on the given two variables.
5.Bit wise operators -> Bit wise operators are used to perform bit operations on given two variables.
6.Conditional operators -> :Conditional operators return one value if condition is true and returns another value is condition is false.
7.Increment/decrement operators->:It is ++,–.
8.Special operators->:&, *, sizeof( ),It is basically use in pointer.


C Language Basics 14 : if condition –> if contion is true then program is run.

C Language Basics 15 : for loop –> It is use repeat value in the program.

C Language Basics 16 : Array -> Array is collection of similar data type.Array is access by index.Index is start by zero.

C Language Basics 17 : Function -> Function is perform many task.function is providing resuability.
If you want return value then use dataype before function name/You do not return value then you can use void.



Leave a Reply

Your email address will not be published. Required fields are marked *