Home > Computer Science > Basics of C Language

Basics of C Language

Computer Awareness Notes Exams

Computer Awareness Notes For Exams

Basics Of C Language For Exams

Basics Of C Language with Example Programs

C language is a high level language developed by Dennis M. Ritchie at Bell Labs USA in 1972, now called as AT and T.

Father of C language – Dennis Ritchie.

C Language is very easy to understand and implement. It is general Purpose, Structured language and high level Language.

Operating systems written in C language

Linux

Unix

RDBMS MySQL

Lets see Basic Hello World Program in C

#include <stdio.h>
int main()
{ 
/* Hello World program */

printf("Hello, World!");

}

Lets see “Hello world” Program, 

      1. #include

#include is preprocessor command tells the computer( c compiler) to inclulde stdio.h into our program before acutual compilation.

      2. int main()  

main() is function where programs starts or begin

      3. Printf

Printf is a function in c language used to print message to display on screen

Like as printf(” This is C language basics”);

      4.  /*      */

This is used for comments, compiler ignores this part  /* “Hello world” Program  */

C Tokens:

Tokens in c languages are Keywords, Identifiers, Constants, Operators, Strings and Symbols

Keywords

Keywords are reserved Words cant be used as Variables, Constants and Identifiers

Keywords are written in lower case.

Identifiers

Identifiers are used to identify user defined elements, Variables and functions

Identifiers uses A to Z, a to z, 0 to 9 but not special character like @, $, % , #

Constants

Name itself shows meaning, fixed- doesn’t change.

Operators

String

String is array of characters

char fdaytalk={ ‘H’, ‘e’, ‘l’, ‘l’, ‘o’};

Symbols

Special symbols are 

{

}

[

]  and ” , “.

Next Topic:  Control statements and Variables

Learn More

Link 1 – Latest Central government Jobs 2019

Link 2 – Banking Awareness 1000+ MCQ and Questions

Link 3 – Complete Gk Gs for Competitive Exams

Link 4 – Indian Constitution Notes for competitive Exams

Link 5 – Top Books for Competitive Exams

Link 6 – Download Quantitative and Aptitude Competitive Exams

Related Search: 
Computer Awareness in Bank bits, Computer Awareness mcq in exams, Computer Awareness mcq question in ibps, Computer Awareness notes for ibps exams, Computer Awareness about c language, c language basic

Comments