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

C Assignment

The document covers various programming concepts including variables, identifiers, flowcharts, arrays, functions, and C programming tasks. It provides specific questions and tasks such as defining variables, classifying identifiers, computing simple interest, and writing C programs for matrix addition, factorial calculation, series summation, and checking for Armstrong numbers. Additionally, it discusses the syntax for function declaration and definition.

Uploaded by

forf7627
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)
8 views1 page

C Assignment

The document covers various programming concepts including variables, identifiers, flowcharts, arrays, functions, and C programming tasks. It provides specific questions and tasks such as defining variables, classifying identifiers, computing simple interest, and writing C programs for matrix addition, factorial calculation, series summation, and checking for Armstrong numbers. Additionally, it discusses the syntax for function declaration and definition.

Uploaded by

forf7627
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. What is variable? What are the rules to construct variable?

2. Classify the following as valid/invalid Identifiers.

i) num2 ii) $num1 iii) +add iv) a_2 v) 199_space vi) _apple vii)#12

3. Draw a flowchart and C program which takes as input p, t, r. Compute the


simple interest and display the result.

4. Define an array. Explain with example. How to declare and initialize 2D-
array. List applications of arrays.

5. Write a C program to perform addition of 2-dimensional matrix (consider


3x3 matrices A and B).

6. Define function. Explain the type of functions based on parameters.

7. Explain the syntax of function declaration and function definition with


example.

8. Write a C program to find factorial of the number using functions.

9. Write a C program to find the sum of the series

Sum= x+x2/2!+x3/3! +.............xn/n!

10. Write a C Program to find whether the given number is Armstrong number

Hint: Armstrong number is a number that is equal to the sum of cubes of


its digits. For example 0, 1, 153, 370, 371 and 407

You might also like