Sunteți pe pagina 1din 2

Studytonight

eta

(http://www.studytonight.com/)

Search

C language

About Us (http://www.studytonight.com/about)

Suggest (http://www.studytonight.com/suggest)
Share
Share

" C is most widely used general-purpose language today in operating systems, and embedded system development. "

Share
(http://www.addthis.com/bookmark.php?v=

US&s=linkedin&url=http%3A%2F%2Fwww.st

syntax.php&title=C%20Language%20Syntax

/51e59d84528ae13c/2&frommenu=1&uid=51e

input-output-function.php&tt=0&captcha_provi
Share
Hom e (http:/ / w w w . studytoni ght. com / )

Core Ja va (http:/ / w w w . studytoni ght. com / j a va )

C+ + (http:/ / w w w . studytoni ght. com / cpp)

DBMS (http:/ / w w w . studytoni ght. com / dbm s)

C La ngua ge (http:/ / w w w . studytoni ght. com / c)


S e rvl e t (http:/ / w w w . studytoni ght. com / se rvl e t)

Basics of C Language
Overview of C (overview-of-

C Language Syntax Rules

c.php)

C language syntax specify rules for sequence of characters to be written in C language. The rule specify how

Features of C (features-of-

character sequence will be grouped together to form tokens. A smallest individual unit in c program is known

c.php)

as C Tokens. Tokens are either keyword, identifier, constant, variable or any symbol which has some meaning

My First C program (first-c-

in C language. A C program can also be called as collection of various tokens.

program.php)
C Input / Output (c-inputoutput-function.php)

Example of C tokens,
int

curly braces { }

comments

semicolon ;

C Syntax Rules (csyntax.php)


Keywords and Identifier
(keywords-and-

Comments

identifier.php)

Comments are simple text in your C program that increases readability of programs. Compiler ignore anything

Operators in C Language

written as comment in your program.

(operators-in-c.php)
Data Types in C (datatypein-c.php)

Example of comments :
//This is a comment

Single line Comment

Variables in C (Variables-inc.php)
Decision Making (decisionmaking-in-c.php)

/*This is a comment*/

Single line Comment

/*This is a long
and valid comment*/

Multi line Comment

//this is not
a valid comment

Wrong Syntax

Switch Statement (switchstatement-in-c.php)


Looping (loops-in-c.php)
Arrays (arrays-in-c.php)
string and character array
(string-and-character-

Some basic syntax rule for C program

array.php)
Storage classes (storage-

C is a case sensitive language so all C instructions must be written in lower case letter.

classes-in-c.php)

All C statement must be end with a semicolon.

Functions in C

Whitespace is used in C to describe blanks and tabs.

Introduction to Functions

Whitespace is required between keywords and identifiers

(user-defined-functions-inc.php)
Types of Function calls
(types-of-function-calls.php)
Passing Array to function
(array-in-function-in-c.php)
Structures in C
Introduction to Structures
(structures-in-c.php)
Typedef (typedef.php)
Unions (unions-in-c.php)
Pointers in C
Pointers concept (pointersin-c.php)

Declaring and initializing


pointer (declaring-andinitializing-pointer.php)
Pointer to Array (pointerswith-array.php)
Pointer to Structure
(pointers-to-structure-inc.php)
Pointer Arithmetic (pointerarithmetic-in-c.php)
Pointer with Functions
(pointer-with-function-inc.php)
Advanced Topics in C
File Input / Output (file-inputoutput.php)
Error Handling (errorhandling-in-c.php)
Dynamic memory allocation
(dynamic-memory-

Prev (c-input-output-function.php)

Next (keywords-and-identifier.php)

allocation-in-c.php)
Command line argument
(command-lineargument.php)
C programs
Find Factorial of a Number
(factorial-program.php)
Reverse a String (reverse-astring-program.php)
Find Fabonacci Series
(fabonacci-seriesprogram.php)
Find sum of a digit (sum-ofdigit-program.php)
Sorting an Array element
(sort-array-elementprogram.php)
Swapping two number
(swapping-two-numberprogram.php)
Find largest number of an
array (find-largest-elementusing-recursion.php)
Pallindrome Program
(pallindrome-program.php)
Remove duplicate element
in an array program
(remove-duplicate-elementprogram.php)

Subjects : Core Java (http://www.studytonight.com/java)


(http://www.studytonight.com/dbms)

C++ (http://www.studytonight.com/cpp)

C Language (http://www.studytonight.com/c)

DBMS

Servlet (http://www.studytonight.com/servlet)

Studytonight 2013 Handcrafted with Love


About Us (http://www.studytonight.com/about) Suggest (http://www.studytonight.com/suggest) Terms (http://www.studytonight.com/terms) Contact Us
(http://www.studytonight.com/contact) Sitemap (http://www.studytonight.com/sitemap.xml)

S-ar putea să vă placă și