Ken Thompson - B language .
- Interpreter-based.
- slow
Dennis Ritchie modified B into Compiler-based language i.e C . in 1972
- provides loop,
- powerful,
- flexible
- procedural
Program structure -C
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Welcome to C");
getch();
}
#include<conio.h>
void main()
{
clrscr();
printf("Welcome to C");
getch();
}
#-preprocessor include the library files
Features of C : Pointers : allow reference to memory location by a name ,
Dynamic Memory Allocation, Recursion fuction(a functn that calls itself)
Pointer
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a=10;
int *i;
printf("\n value of A is %d",a);
printf("\n value of A is %d",&a);
i=&a;
printf("\n value of i is %d",*i);
printf("\n value of i is %d",*i,i);
getch();
}
Reserved Keywords :
Datatypes
Flowchart
No comments:
Post a Comment