-
Hajipur, Bihar, 844101
C is a powerful general-purpose programming language. It is widely used to develop system software, databases, operating systems, embedded systems, and more.
It was developed in the 1970s by Dennis Ritchie at Bell Labs and remains the foundation of many modern languages like C++, Java, and Python.
Simple and fast
Portable and efficient
Gives low-level access to memory
Suitable for system-level programming
Forms the base of modern programming languages
Procedural language
Rich library of functions
Modular structure with functions
Compiled language (requires compilation before running)
To write and run C programs:
A C compiler like GCC or Turbo C
A text editor (Code::Blocks, Visual Studio Code, etc.)
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
#include <stdio.h>
— Includes standard input/output header
int main()
— Starting point of execution
printf()
— Prints output
return 0;
— Ends the program
gcc program.c -o program
./program
Q1. Print your name using C.
Q2. Add two numbers.
Output: Sum = 8
Q3. Use comments in C.
Q4. Input a number and print it
Q5. Multiply two floating-point numbers.
Output: Product = 10.00
Q1: Who developed the C language?
Q2: What is the correct syntax to output "Hello World" in C?
Q3: Which of the following is a valid C keyword?
Q4: Which function is the starting point of a C program?
Q5: What symbol is used to include a header file?