Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary Statement and Loop & Array Full Notes and suggestion based summarized question answers

Rating
-
Sold
-
Pages
12
Uploaded on
23-10-2025
Written in
2024/2025

Master the fundamentals of C++ programming with these detailed and well-organized notes covering Statements, Loops, and Arrays — essential topics for every beginner and intermediate coder! These notes are handwritten and easy to understand, designed to help students quickly grasp programming logic and structure in C++. Each concept is explained with clear examples, syntax, and real-world applications that make learning interactive and practical. What’s included: Explanation of all types of statements (expression, conditional, compound) Deep understanding of loops – for, while, and do-while loops Step-by-step logic building with loop nesting and flow control Detailed array concepts – declaration, initialization, single & multi-dimensional arrays Sample C++ programs with output and comments Perfect for college exams, coding tests, and placements Why these notes? Easy-to-read and neatly formatted Covers both theory and examples Helps you revise quickly before exams Great resource for B.Tech, BCA, and CS students If you’re learning C++ programming, these notes will save your time and boost your understanding of how statements, loops, and arrays work together in real coding problems. Keywords: C++ Notes, Programming Notes PDF, Statements in C++, Loops in C++, Arrays in C++, C++ Beginner Notes, Coding Notes, C++ Syntax, Programming Concepts, Computer Science Notes

Show more Read less
Institution
Course

Content preview

STATEMENT AND LOOP
1. C Tokens – C tokens means developing keyword, identifier etc.
which is developed source program that compiler does not break into
that component. It is also basic building block of C program.
 Keyword – Keywords are pre-defined or reserved words that have
special meaning to the compiler. They are part of the syntax and
cannot be used as identifiers in the program. A list of keywords in
C or reserved words in the C programming language are mentioned
below –
Auto, break, int, return, char, case, else, double, do, if, long,
register, switch etc. There are total 32 keywords.
 Identifier – An identifier is the name used to identify variables,
functions, arrays, structures etc. It must begin with a letter or an
underscores. It can contain letters, digits and underscores. It is
case-sensitive. For an example: “int age;” – Here ‘age’ is an
identifier.


2. The differences between ++i and i++ are in below –
++i i++
It increments the value before it It increments the value after it is
is used in the expression. used in the expression.
It first increases the value of i, It returns the original value of i,
then returns the incremented then increments it.
value.


3. The differences between while loop and do-while loop are in
below:
While Loop Do-while Loop
The test condition is checked The test condition is checked after
before the loop body is executed. executing the body.
When the condition is false, the The body of the do-while loop is

, body is not executed even once. executed at least once even when
the condition is false.
It is a type of pre tested or entry It is a type of post tested or exit
controlled loop. controlled loop.
Semicolon is not required. Semicolon is required at the end.


4. Conditional Operator – The conditional operator in C is also
known as the ternary operator because it works with the three
operands. It provides a shorthand way to write if-else statements.
Syntax: condition? expression1: expression2;
If the condition is true, it evaluates ‘expression1’. If the condition
is false, it evaluates ‘expression2’.
 Comma Operator – The comma operator allows multiple
expressions to be evaluated in a single statement. Expressions are
evaluated left to right, but only the value of the last expression is
returned.
Syntax: result = (expr1, expr2, expr3);

 Sizeof Operator – The sizeof operator returns the size in bytes of a
variable or data type. It is evaluated at compile time. It is often
used to know memory usage.
Syntax: sizeof(data_type)
sizeof(int)
sizeof(variable)
sizeof(a)


5. Escape Sequence – An escape sequence is a series of characters
used in programming and mark-up languages to represent special
characters that cannot be typed directly. In most programming
languages, escape sequences start with a backlash (\).

Written for

Institution
Course

Document information

Uploaded on
October 23, 2025
Number of pages
12
Written in
2024/2025
Type
SUMMARY

Subjects

$9.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
hiteshpaul

Get to know the seller

Seller avatar
hiteshpaul Panskura Banamali College
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
6 months
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions