0% found this document useful (0 votes)
43 views

Assignment csc183

The document outlines an assignment to write C programs that demonstrate understanding of various programming concepts. It includes tasks to write programs that work with data types, arrays, matrices, strings, functions, and more. Programs are to take input, perform operations like addition and sorting, and print outputs. Understanding of basic concepts like arrays and functions is tested through practical programming exercises.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Assignment csc183

The document outlines an assignment to write C programs that demonstrate understanding of various programming concepts. It includes tasks to write programs that work with data types, arrays, matrices, strings, functions, and more. Programs are to take input, perform operations like addition and sorting, and print outputs. Understanding of basic concepts like arrays and functions is tested through practical programming exercises.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment

1. Explain Data types in C.


2. Define postfix & prefix in C with example.

3. Define array & discuss the advantages of array.


4. Write a program to take input in an array and print the array as output.
5. Write a program to find the sum of all elements in an array.
6. Write a program to count the total even and odd numbers in an array.
7. Write a program to copy elements of one array to another array.
8. Write a program to find the largest/smallest number in an array.
9. Write a program to find the second largest/ second smallest number in an array.
10. Write a program to sort an array in ascending order.

11. Define 2D array with example. Mention the uses of 2D array.


12. Write a program to take input in 2 2D arrays of two different sizes and print the outputs.
13. Write a program to addition of two matrices and placing them on third and show the
third.
14. Write a program to find the sum of all elements in a matrix.
15. Write a program to show matrix multiplication.

16. Write short note on: strlen, strcpy, strcat, strcmp, strncmp
17. Write a program in c to check a given number is palindrome or not.
18. Write a program in c to reverse the string.

19. Define function and describe the ways of function with example.
20. Write a program in C to find the square of any number using the function.

You might also like