introduction to c
Chapters
- introduction to c
- features of c language
- why you should learn c language ?
- example of c
- question and answers
introduction to c
C is a most popular and beginner friendly programming language. C language is developed by an american computer scientist Dennis Ritchie at bell laboratories in 1972. c language is considered as middle level language .c language is commonly used for application development, system programming and embedded systems.
features of c language
c language provides low level access to memory which allows programmers to write code efficiently. c is a portable language. c also provides high level features such as structured programming constructs (like loops and conditionals) and support functions and libraries these features makes c language suitable for developing software applications.
why you should learn c language ?
learning c language provides many benefits that can enhance your programming skills and open up various opportunities in computer science and software development field. c is a foundational language in computer science which provides deep understanding of foundational programming concepts like variables, data types, loops, functions and memory management. it is helpful to learning other languages because it shares similar concept and syntax.
example of c language
#include<stdio.h>int main(){printf("welcome");return 0;}
In this example, # is a preprocessor directive and it is including <stdio.h> header file which provides declaration for input and output function such as scanf() and printf() , main is a function which is entry point of programme , execution of programme starts from main function. { (open curely braces) it marks the beginning of the main function. then printf() is a funcion which is used to display the output on the screen , basically the message written in double quotes will be displayed on the screen it will display welcome. } (close curely braces) indicates end of main function.
• Questions
- who developed c language ?
- in which year and place c language is developed ?
- for which purpose c language is commonly used ?
- why you should learn c language ?
- what is # in c ?
- which function is used to display the output on the screen ?
- what is features of c ?
- which level language is c ?
• Answers
1. C language is developed by Dennis Ritchie
2. C language is developed at bell laboratories in 1972.
3. C language is used for embedded system and software development.
4. C is beginner friendly language when you learn c ,you get the idea of programming language and it helps to build logic in programming.
5. # is preprocessor directive.
6. printf() is used to display output on the screen.
7. It provides low level access to memory.
*It is portable language.
*It provides features like loops and conditionals.
8. C is middle level language.