C

Fundamental concept of Problem solving
Introduction
Problem solving strategies
Program design & implementation
Introduction to C
Introduction to C
How to open C program code window
Description of C code window
Editing File
Saving and Running a program
The components of C language
Structure of C Program
A sample of C language program
C character set and keywords
C character set and keywords
The C character set
Identifiers
Key words
Data Types
Data Types
Primary Data Type
Secondary Data Type
Variables
Introduction
Rules for constructing variables names
Variable declaration
Assigning values to variables
Scope of variables: Local & Global
Constants
Introduction
Character constants
Integer constants
Real constants
Logical & String constants
C instruction set
Introduction
Type Declaration & Input/Output Instructions
Arithmetic Instructions
Control Instructions
Operators
Introduction
Arithmetic operators
Relational operators
Logical operators
Increment & Decrement operators
Bitwise operators
Conditional & ternary operators
The comma operators
Size of operator
Assignment operator
Type modifier
Expressions
Evaluation of expression
Automatic type conversion
Basic Input/Output
Introduction
Console I/O function
Disc & Port I/O function
Control Structures
Sequence control statements
Decision control & conditional statements
Case control statements
Repitition & loop control statements
Some more statements
Array and String
Introduction of Array
Array Declaration
Array Initialization
Two Dimensional Array
Multi Dimensional Array
String
Function and Recursion
Function Definition
Function Declaration
Function Call
Recursion
Pointers
Introduction
Pointer expression
Pointer & functions
Pointer & Array
Multi Dimensional Arrays & Pointer
Arrays of Pointer
Use of Pointer & functions
Structures
Introduction
Giving values to member
Structure Initialization
Comparison of structure variables
Arrays of structures
Arrays within structures
Structures within structures
Passing structure to function
Union
Introduction
Accessing a union member
Initialization of Union variable
Uses of Union
Dynamic Data Structure
Linked list
Stack
Queue
Data File Handling through C
Introduction
File operation
Opening & closing a data file
Creating a data file
Processing a data file
Unformatted data file
C Preprocessor & Macro
Introduction
Macro substitution directives
File inclusion
Compiler control directive
Command line parameter of C
Command line parameter
Header file
Header file
Use of library functions
Some Useful library functions

Structures


Introduction

The C language allows us to create custom data types.
 
The structure is a custom data type which c combines different data types .
 
The structure is a custom data type which combine different data types to form a new user define data type.
 
Definition
 
A structure is a collection of variable reference under one name providing a convincible means of related information together.
 
Format: struct tag_name
{
data _type member1;
data_type member2;
-------------------
---------------------
};
 
here a keyboard struct declares a structes to hold the details of field of different data types.
 
Example:
struct addr
{
char name [30];
char city [15];
int pincode ;
};
 
Creating Structure variable
 
structure can be created in two ways:
 
1. declaration using tagname anywhere in the program.
 
Example:
 
struct book
{
char name [30];
char author [25];
float price;
};
struct book book1 book2
 
2. it is also allowed to combine structure declaration and variable declaration in one statement.
 
Example:
 
struct person
{
char *name;
int age;
char*address;
};
p1,p2,p3
 
while declaring structure variable along with their definition, the use of tag-name is optional.
 
Struct
{
char *name;
int age;
char * address;
}
p1,p2,p3
 
Image showing how the given value allocate in structure with the help of an example >