0% found this document useful (0 votes)
25 views3 pages

Clangnotes

C language, developed by Dennis Ritchie in 1972, is a high-level, structured programming language known for its efficiency and close hardware interaction. It features a rich library, memory management, and supports various types of variables and functions, including built-in and user-defined functions. Additionally, the document covers algorithms, flowcharts, and introduces Bootstrap as a framework for creating responsive web pages.

Uploaded by

y4593866
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Clangnotes

C language, developed by Dennis Ritchie in 1972, is a high-level, structured programming language known for its efficiency and close hardware interaction. It features a rich library, memory management, and supports various types of variables and functions, including built-in and user-defined functions. Additionally, the document covers algorithms, flowcharts, and introduces Bootstrap as a framework for creating responsive web pages.

Uploaded by

y4593866
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

C language notes :

1. C language is developed in U.S.A by Dennis Ritichie in 1972 at AT & T's Bell


laboratories.

2. It is a High level language , mother level lanaguage , faster in execution,


close interaction with hardware by using pointers.

3. C is a structured programming language.

4. Features of c language :
a. Simple
b. Machine Independent or portable
c. Mid level programming language
d. Structured programming language
e. Rich Library
f. Memory Management
g. Fast speed
h. Pointers
i. Recursion
j. Entension : because it can easily adopt new features.

5. Algorithm : An algorithm is a step by step procedure to solve a problem.

6. Flowchart : It is a graphical representation of an algorithm.

Ques. Draw a flowchart for a machine to take input age of a person and give
output - eligible or not eligible for voting ?

Ques. Draw a flowchart for a machine to take input age of a person and give
output - eligible or not eligible for marraige ?

7. Compiler : It is a computer software that translates source code written in a


high level language into a set of machine language.

8. Prepocessor : C preprocessor is not a part of C compiler but it is a seperate


step in the compilation process.
#define substitutes a preprocessor macro.
#include inserts a particular header from another
file.

9. Keywords :auto double int struct


break else long switch
case enum register typedef
char extern return
union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while

10. Types of variable:


a. Local variable
b. Global variable
c. Static variable
d. Automatic variable
e. External variable

11. It is a case sensitive language.


12. Input from user:
scanf()

Function -->>

function is the block of code which have some code and perform some particular
task.
Types of function
1.Built in function
2.User define function

Built in function : The function that is already define into header files is called
built in function.
example: printf(),clrscr(),getch(),gets()....etc.

User define function :The function that is define by user is called user define
function.
Types of UDF:
1.No return type no passing parameter
2.No return type but passing parameter
3.Return type and no passing parameter
4.Return type passing parameter

syntax:

Return_type Function_Name(parameter)
{
//block of code
}

String-->>

It is the collection of character. it is also a datatype but it is not available in


c.
syntax :

char StringName[size];

some built in methods of string.....


1.gets()
2.puts()
3.strrev()
4.strcmp()
5.strcpy()
6.strupr()
7.strlwr()
8.strlen()

Note: all methods are available into string.h header file.

strcmp() = if you want to compare of two string then we use this string.
it return three types of values.
it return if both string are equal.
if it return 1 then first string is greater than second
if it return -1 then second string is greater than first

syntax:
strcmp(str1,str2);

Bootstrap :
Bootstrap is a framework of HTML,CSS and javascript . It is used for creating a
responsive web pages.

==> It provide libraries ....

1.CSS file
2.Fonts file
3.JS file

You might also like