Introduction to C Programming Sem1 Assignment 2
1. Describe the basic structure of “C” Program. Sem1 Assignment 3 The basic structure of a C program includes the preprocessor directives, global declarations, function definitions, and the main function. Q2. Define the algorithm with suitable examples A2. An algorithm is a set of instructions or rules that are followed to solve a problem. For example, an algorithm for finding the maximum number in a list of integers could be: 1. Set the maximum value to the first number in the list. 2. Loop through each number in the list. 3. If a number is greater than the current maximum value, update the maximum value to that number. 4. Once all numbers have been checked, the maximum value will be found. Q3. What are the characteristics of C language. A3. The characteristics of C language include its low-level nature, ability to manipulate memory directly, and efficiency in execution. It also has a rich set of operators and functions, making it versatile and capable of handling complex tasks. However, …