0% found this document useful (0 votes)
5 views1 page

C Programming Exam Notes Formatted

The document provides exam-ready notes for C programming, covering essential topics such as problem specification, flowchart representation, and basic programming constructs. It includes examples of a simple C program, if statements, loops, and pointers. These notes serve as a quick reference for understanding fundamental C programming concepts.
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)
5 views1 page

C Programming Exam Notes Formatted

The document provides exam-ready notes for C programming, covering essential topics such as problem specification, flowchart representation, and basic programming constructs. It includes examples of a simple C program, if statements, loops, and pointers. These notes serve as a quick reference for understanding fundamental C programming concepts.
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

C Programming – Exam Ready Notes

1. Problem Specification
Define inputs, outputs, and constraints before coding.

2. Flowchart
Graphical representation of algorithm.

Start

Process

End

Example: Simple C Program


#include<stdio.h>
int main() {
int a = 5, b = 10;
printf("Sum = %d", a + b);
return 0;
}

If Statement
if(a > b) {
printf("A is greater");
} else {
printf("B is greater");
}

Loops
for(int i=0; i<5; i++) {
printf("%d", i);
}

Pointers
int a = 10;
int *p = &a;

You might also like