The document outlines key concepts in C programming including data types, tokens, keywords, identifiers, constants, variables, and scopes. It discusses the five fundamental data types in C (integer, floating-point, double, character, void), tokens like keywords and identifiers, common keywords and their meanings, rules for identifiers, how variables are declared and initialized, what constants are (fixed values that don't change), and the four scopes in C.
This C tutorial covers every topic in C with the programming exercises. This is the most extensive tutorial on C you will get your hands on. I hope you will love the presentation. All the best. Happy learning.
Feedbacks are most welcome. Send your feedbacks to dwivedi.2512@gmail.com. You can download this document in PDF format from the link, http://www.slideshare.net/dwivedi2512/learning-c-an-extensive-guide-to-learn-the-c-language
Data types in java | What is Datatypes in Java | Learning with RD | Created b...rahuldaredia21
In this presentation , i will present a what are the datatypes in java? in brief and use easy world to understand easily about datatype but more important think in this presentation is diagram because any types of topic like In Byte understand in theory but easily understand in only diagrams and all about details of byte and also in case all datatypes in java give understand in diagrams then also watch video on youtube to understand more about datatypes link in this description .
https://youtu.be/pOBS9wBXVjY
click on link and watch this video understand datatypes easily.
THANK YOU
This C tutorial covers every topic in C with the programming exercises. This is the most extensive tutorial on C you will get your hands on. I hope you will love the presentation. All the best. Happy learning.
Feedbacks are most welcome. Send your feedbacks to dwivedi.2512@gmail.com. You can download this document in PDF format from the link, http://www.slideshare.net/dwivedi2512/learning-c-an-extensive-guide-to-learn-the-c-language
Data types in java | What is Datatypes in Java | Learning with RD | Created b...rahuldaredia21
In this presentation , i will present a what are the datatypes in java? in brief and use easy world to understand easily about datatype but more important think in this presentation is diagram because any types of topic like In Byte understand in theory but easily understand in only diagrams and all about details of byte and also in case all datatypes in java give understand in diagrams then also watch video on youtube to understand more about datatypes link in this description .
https://youtu.be/pOBS9wBXVjY
click on link and watch this video understand datatypes easily.
THANK YOU
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
1. Lecture02(Constants, variable & data types)
June 15, 2010
Today's Outline
Data Types
C Tokens
Keywords & Identifiers
Constants
Variables
The four C scopes
Type Qualifiers
Storage Class Specifiers
Md. Mahbub Alam Structured Programming Language 1
(CSE-1121)
2. C Tokens
Token: Smallest individual units in C program are known as token.
e.g. Keywords - int, break, for, struct etc
Identifiers - count, amount etc
Constants - 10, 5.5, -7.5 etc
Strings - “DUET”, “1st Year” etc
Operators - +, -, *, /
Special Symbols - [] {} etc
Md. Mahbub Alam Structured Programming Language 2
(CSE-1121)
3. C Data Types
All C compiler supports 5 foundational data types, namely
integer(int), floating-point(float), double precision floating-point
(double), character(char), & void.
Data Type Size (bits)
char 8
int 16 or 32
float 32
double 64
void type either explicitly declares a function as returning no value
or creates generic pointers.
Md. Mahbub Alam Structured Programming Language 3
(CSE-1121)
4. C Keywords
All keywords have fixed meanings & these meanings can not be
changed. Serve as basic building blocks for program statements.
All keyword must be written in lowercase letters.
• Flow control (6) - if, else, return, switch, case,
default
• Loops (5) - for, do, while, break, continue
• Common types (5) - int, float, double, char, void
• Structures (3) - struct, typedef, union
• Counting and sizing things (2) - enum, sizeof
• Rare but still useful types (7) - extern, signed,unsigned,
long, short, static, const
• Evil keywords which we avoid (1) - goto
• Others (3) - auto, register, volatile
Md. Mahbub Alam Structured Programming Language 4
(CSE-1121)
5. C Identifiers
In C, the names of variables, functions, labels & various other user-
defined items are called identifiers.
Rules for identifiers:
• First character must be an alphabet or underscore and subsequent characters
must be either letter, digits, or underscore.
• Only 31 characters are significant.
• Can not be the same as a C keywords & should not have the same name as
functions that are in C library.
• Must not contain white space.
Md. Mahbub Alam Structured Programming Language 5
(CSE-1121)
6. Variables
A variable is a named location in memory that is used to hold a value
that can be modified by the program.
All variable must be declared before they can be used.
Format: type varable_name; e.g. int count;
Variable name must be meaningful to reflect its function or nature.
Variable initializations Format: type variable_name = constant;
Where variables to be declared:
- Inside function (local variables)
- In the definition of function parameters (Formal parameters)
- Outside of all functions (global variables)
Md. Mahbub Alam Structured Programming Language 6
(CSE-1121)
7. Constants
Constants refers to fixed values that do not change during program
execution.
Constants can be of any type of the basic types.
Constants are also called literals.
int 10, 135, -23
Example:
long int 5678349L
unisigned int 580U
unisigned long int 9845464UL
float 120.25f
long double 1020.75L
character constants ‘D’
string “DUET”
HEX 0x80
Octal 016
Md. Mahbub Alam Structured Programming Language 7
(CSE-1121)
8. Backslash Character Constants
Backslash character constants are used in output functions.
Also known as escape sequence
Code Meaning
b Backspace
n New line
f Form feed
r Carriage return
t Horizontal tab
v Vertical tab
” Double quote
’ Single quote
Backslash
a Alert
? Question mark
0 Null
Md. Mahbub Alam Structured Programming Language 8
(CSE-1121)