Test
Test
Control Structures
Functions
Pointers
File Handling
Miscellaneous
Basic Concepts
Control Structures
3. Write a program to find the largest of three numbers using an if-else statement.
4. Write a C program to print the first 10 natural numbers using a for loop.
5. Write a program to demonstrate the use of the switch statement by creating a simple
calculator that performs addition, subtraction, multiplication, and division based on user
input.
7. Write a program to initialize an array of 10 integers and print the elements using a for loop.
8. Write a C program to reverse a string using a for loop.
Pointers
10. Define a structure Person with members name, age, and salary. Write a program to declare
a Person variable and initialize it. Print the details of the person.
File Handling
11. Write a program to create a file and write "Hello, World!" into it. Then open the file and read
the content to print it
Basic Concepts
Control Structures
Functions
Pointers
File Handling
Miscellaneous
Control Structures
6. Write a program to find the largest of three numbers using an if-else statement.
7. Write a C program to print the first 10 natural numbers using a for loop.
8. Write a program to demonstrate the use of the switch statement by creating a simple
calculator that performs addition, subtraction, multiplication, and division based on user
input.
9. Write a program to initialize an array of 10 integers and print the elements using a for loop.
10. Write a C program to reverse a string using a for loop.
Pointers
10. Write a program to demonstrate the use of pointers by declaring a pointer to an integer,
assigning it the address of a variable, and printing the value and address of the variable using
the pointer.
11. Define a structure Person with members name, age, and salary. Write a program to declare
a Person variable and initialize it. Print the details of the person.
File Handling
12. Write a program to create a file and write "Hello, World!" into it. Then open the file and read
the content to print it