Friday, 2 March 2018

PROGRAMMING IN C AND DATASTRUCTURE


ASSIGNMENT-1

1. Write a general structure of c with an example?
2. What is variable? Explain the rules for constructing a variable? Give examples for valid and invalid variables?
3. What is an algorithm and psuedo code? Write an algorithm and psuedo code to find the sum and average of 3 numbers?
4. Write a flowchart and develop a c program to find area and perimeter of rectangle?
5. Explain printf and scanf functions with example? 
6. List and explain all the operators used in c with example?
7. Evaluate the following expression
    a. 100%20<=20-5+100%10-20==5>=1!=20
    b. a+=b*=c-=5 where a=3 b=5 and c=8
8. List all the conditional statements used in c and write a program to find the biggest of 3 numbers?
9. Write a c program to find the simple interest and display the result?
10. Explain switch statement with an example?

No comments:

Post a Comment

Download Text Books

Download All TextBooks from 1st to 10th standard Click Here to Download http://www.ktbs.kar.nic.in/New/index.html#!/textbook