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

C Programming Easy Notes

C is a general-purpose programming language known for its speed and simplicity, commonly used in system and application development. Key concepts include variables, data types, operators, control statements, functions, arrays, strings, pointers, structures, and file handling. An example program demonstrates the basic structure of a C program with a simple 'Hello, World!' output.

Uploaded by

042008janvisingh
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)
2 views2 pages

C Programming Easy Notes

C is a general-purpose programming language known for its speed and simplicity, commonly used in system and application development. Key concepts include variables, data types, operators, control statements, functions, arrays, strings, pointers, structures, and file handling. An example program demonstrates the basic structure of a C program with a simple 'Hello, World!' output.

Uploaded by

042008janvisingh
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 - Easy Notes

What is C?
C is a general-purpose programming language. It is fast, simple, and widely used for system and
application development.

Basic Structure
Header files, main() function, declarations, statements, return 0;

Variables
Variables store data. Example: int age=18;

Data Types
int, float, char, double.

Operators
Arithmetic (+,-,*,/), Relational (>,<), Logical (&&,||,! ).

Control Statements
if, if-else, switch, for, while, do-while.

Functions
Functions divide programs into reusable blocks.

Arrays
Collection of same type elements.

Strings
Character arrays ending with '\0'.

Pointers
Store memory addresses. Example: int *p=&x;

Structures
Group different data types together.

File Handling
Use fopen(), fprintf(), fscanf(), fclose().

Example Program
#include <stdio.h>
int main(){
printf("Hello, World!");
return 0;
}

You might also like