0% found this document useful (0 votes)
4 views2 pages

PPS Short Notes Till Structures

The document provides an overview of programming concepts, focusing on the C language. It covers language types, basic syntax, input/output functions, control structures, arrays, strings, functions, pointers, and user-defined structures. Each section includes essential definitions and examples for better understanding.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

PPS Short Notes Till Structures

The document provides an overview of programming concepts, focusing on the C language. It covers language types, basic syntax, input/output functions, control structures, arrays, strings, functions, pointers, and user-defined structures. Each section includes essential definitions and examples for better understanding.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PPS Short Notes (Till Structures)

1. Introduction to Programming

- Programming: Writing instructions for a computer.

- Language Types:

* Machine Language: Binary (0s and 1s)

* Assembly Language: Mnemonics (e.g., MOV, ADD)

* High-Level Language: Easy syntax (e.g., C, Java)

2. Basics of C Language

- Keywords: Reserved words (e.g., int, return, if)

- Identifiers: Names for variables/functions

- Variables: Containers for data

- Data Types: int, float, char, double

- Operators: +, -, *, /, %, ==, !=, >, <, >=, <=, &&, ||, !

3. Input/Output in C

- scanf() for input, printf() for output

- Format Specifiers: %d (int), %f (float), %c (char), %s (string)

4. Control Structures

- Conditional: if, if-else, nested if, switch

- Looping: for, while, do-while

- Jump Statements: break, continue, goto, return

5. Arrays

- Collection of similar data types

- Syntax: int arr[5];

- Types: 1D, 2D (e.g., int matrix[3][3];)

6. Strings
PPS Short Notes (Till Structures)

- Array of characters

- Declaration: char name[10] = "Ayush";

- Functions: strlen(), strcpy(), strcmp(), strcat()

7. Functions

- Block of code for a specific task

- Types: With/Without return type & arguments

- Call by value & Call by reference

8. Pointers

- Variable storing address of another variable

- Syntax: int *ptr;

- Used in dynamic memory, arrays, functions

9. Structures

- User-defined data type

- Syntax:

struct Student {

int id;

char name[20];

float marks;

};

- Access using dot operator: student1.id

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy