40s
Performance Analytics
0
Final Aggregate Score
0
Correct (+1)
0
Wrong (0)
0
Unattempted (0)
0%
Accuracy Rate
Review Mistakes
Review only incorrect or unattempted questions
Final Aggregate Score
Review only incorrect or unattempted questions
Complete exam-focused notes covering the fundamentals of C programming — definitions, concepts, syntax and important programs for BCA Semester 1.
#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
C is a general-purpose, procedural programming language developed by Dennis Ritchie at Bell Laboratories in the early 1970s.
C is a general-purpose, procedural programming language used for developing system software, application software and embedded systems.
C is popular because it provides both high-level programming features and low-level memory control.
A C program generally consists of header files, the main function, declarations, statements and a return statement.
#include <stdio.h>
int main()
{
int a = 10;
printf("%d", a);
return 0;
}Remember the basic flow: Header → main() → Declaration → Statements → return 0
A data type specifies the type of data that a variable can store.
| Data Type | Purpose | Example |
|---|---|---|
| int | Integer values | 10 |
| float | Decimal values | 10.5 |
| char | Single character | 'A' |
| double | Large decimal values | 10.5678 |
A variable is a named memory location used to store a value that can change during program execution.
int age = 18; float marks = 85.5; char grade = 'A';
Operators are symbols used to perform operations on operands.
Control statements determine the order in which statements are executed.
A function is a block of code designed to perform a specific task.
int add(int a, int b)
{
return a + b;
}An array is a collection of elements of the same data type stored in contiguous memory locations.
int numbers[5] = {
10, 20, 30, 40, 50
};A pointer is a variable that stores the memory address of another variable.
int a = 10; int *ptr = &a;
Final Aggregate Score
Review only incorrect or unattempted questions
Final Aggregate Score
Review only incorrect or unattempted questions