Introduction To C
Introduction To C
What is C?
C is a general-purpose, procedural programming language developed in the early 1970s by Dennis Ritchie. It
is widely used for system programming, including operating systems, embedded systems, and
high-performance applications.
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
Data Types in C
- int: Integer
- char: Character
int a = 5;
float b = 2.5;
char c = 'A';
Introduction to Java Programming
// Arithmetic operators: +, -, *, /, %
Control Structures
if (a > b) {
// code
} else {
// other code
// loop code
Functions in C
return x + y;
int main() {
printf("%d", result);
return 0;
Introduction to Java Programming
int x = 10;
int *p = &x;
- [C Programming on GeeksforGeeks](https://www.geeksforgeeks.org/c-programming-language/)
- [C Tutorial - Tutorialspoint](https://www.tutorialspoint.com/cprogramming/)
- [C Reference - cplusplus.com](https://cplusplus.com/doc/tutorial/)