0% found this document useful (0 votes)
10 views1 page

All Required Questions For Practical

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)
10 views1 page

All Required Questions For Practical

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
You are on page 1/ 1

1 Write a program that print "Hello, World!

" to the console

2 Declare an array and initialize it with values. Calculate the sum of the elements.

3 Use structs to define and manipulate complex data types and understand how to define and use

structs.

4 Declare variables of different basic data types (int, float, char, double) and print their values.

5 Write a program that use structs to define and manipulate complex data types.

6 Write a C program to Perform basic arithmetic operations using different operators.

7 Write a C program to Use bitwise operators to manipulate data at the bit level.

8 Write a C program to Use a switch statement to print the name of the day based on the day

number

9 Write a program that Calculates the sum of the first n even numbers using a for loop.

10 Create a program that print the multiplication table up to n x n using nested loops and how to

use nested loops for creating tables.

11 Calculate the sum of the first n natural numbers using a while loop

12 Calculate the factorial of a number using a do-while loop and understand how to use the do-

while loop for iterations

13 Reverse the digits of a number using a while loop and how to manipulate numbers using

loops

14 Write a C program to Find the maximum element in a one-dimensional array.

15 Write a C program to Implement functions to perform matrix addition and multiplication.

16 Write a C program to Access and print array elements using pointers.

17 Write a function that swaps two numbers using pointers and call it from the main program.

18 Write a C program to Access and print array elements using pointers.

You might also like