Unit 1: C Fundamentals.
Comprehensive study guide covering computer basics, algorithms, and core C syntax tailored for JNTUK R23 exams.
01. Topic Archive
Computer Overview
Functional units of computer, Input/Output devices, and basic memory organization.
Jump to Notes →Problem Solving
Algorithms, Flowcharts, and Pseudo-code construction. Guaranteed 7-mark question area.
Jump to Notes →C Language Syntax
Data types, Storage classes, Operators, and Input/Output functions in C.
Jump to Notes →02. Full Notes
Introduction to Computers
A computer is an electronic device that processes data according to set of instructions. In the context of JNTUK exams, you must remember the functional units:
- Input Unit: Devices like Keyboard, Mouse that help enter data.
- Central Processing Unit (CPU): The brain. Contains ALU (Arithmetic Logic Unit) and CU (Control Unit).
- Output Unit: Monitor, Printer displaying results.
- Memory Unit: Primary (RAM) and Secondary (Hard disk) storage.
Algorithm & Flowcharts
Algorithm: A step-by-step logical procedure to solve a problem. It should be finite, definite, and effective.
Flowchart: A pictorial representation of an algorithm. Use standard symbols:
Structure of a C Program
main() function where execution begins.
A standard C program follows this hierarchy, which is a common 5-mark question:
C Data Types
C is a statically typed language. Memorize this table:
| Type | Keyword | Size (16-bit) | Format |
|---|---|---|---|
| Integer | int | 2 Bytes | %d |
| Character | char | 1 Byte | %c |
| Floating Point | float | 4 Bytes | %f |
03. Cheat Sheet
Operators Shortcut
- Arithmetic + - * / %
- Relational > < >= <= == !=
- Logical && || !
- Assignment = += -= *=
- Special sizeof() & ,
Decision Making
Syntax for Switch statement (Common Question):
04. Exam PYQs
Q: Explain the different data types available in C language?
View Solved AnswerQ: Define Algorithm & Flowchart. Differentiate them with a simple example.
View Solved Answer06. Quick Revision
Memory Hack: Data Types
"Int is 2, Float is 4, Char is 1, Double is 8" (Bytes in 16-bit).
Operator Priority
P-U-A-R-L-A (Parenthesis, Unary, Arithmetic, Relational, Logical, Assignment).
1-Day Before Prep Pack
Must Solve Programs
- Largest of 3 numbers using nested-if
- Calculator using Switch case
- Roots of quadratic equation
Critical Theory
Algorithm vs Flowchart symbols (Draw accurately!)
Structure of C Program (Define all sections)
Quick Formulas
// Ternary Operator
(condition) ? true : false;
// Type Cast
(float)sum/count;
Weightage Analysis
Type Density Heatmap
Dense
Lite
Heavy
Hot
Ready for Unit 2?
Explore Full SubjectLogin via Dashboard to save your progress, secure your streak, and unlock AI features.