About C Programming Language:
· The C programming language is a structure oriented programming language, developed at Bell Laboratories in 1972 by Dennis Ritchie
· C programming language features were derived from an earlier language called “B” (Basic Combined Programming Language – BCPL)
· C language was invented for implementing UNIX operating system
· In 1978, Dennis Ritchie and Brian Kernighan published the first edition “The C Programming Language” and commonly known as K&R C
· In 1983, the American National Standards Institute (ANSI) established a committee to provide a modern, comprehensive definition of C. The resulting definition, the ANSI standard, or “ANSI C”, was completed late 1988.
Syllabus :
Practicals:
1. Basic Programs:
a. Write a program to display the message HELLO WORLD.
b. Write a program to declare some variables of type int, float and double. Assign some values to these variables and display these values.
c. Write a program to find the addition, subtraction, multiplication and division of two numbers.
2. Programs on variables:
a. Write a program to swap two numbers without using third variable.
b. Write a program to find the area of rectangle, square and circle.
c. Write a program to find the volume of a cube, sphere, and cylinder.
c. Write a program to find the volume of a cube, sphere, and cylinder.
3. Conditional statements and loops(basic)
a. Write a program to enter a number from the user and display the month name. If number >13 then display invalid input using switch case.
b. Write a program to check whether the number is even or odd.
c. Write a program to check whether the number is positive, negative or zero.
d. Write a program to find the factorial of a number.
e. Write a program to check whether the entered number is prime or not.
f. Write a program to find the largest of three numbers.
4. Conditional statements and loops(advanced)
a. Write a program to find the sum of squares of digits of a number.
b. Write a program to reverse the digits of an integer.
c. Write a program to find the sum of numbers from 1 to 100.
d. Write a programs to print the Fibonacci series.
e. Write a program to find the reverse of a number.
f. Write a program to find whether a given number is palindrome or not.
g. Write a program that solve the quadratic equation
h. Write a program to check whether the entered number is Armstrong or not.
i. Write a program to count the digit in a number
5. Programs on patterns:
a. Programs on different patterns.
6. Functions:
a. Programs on Functions.
7. Recursive functions
a. Write a program to find the factorial of a number using recursive function.
b. Write a program to find the sum of natural number using recursive function.
8. Arrays
a. Write a program to find the largest value that is stored in the array.
b. Write a program using pointers to compute the sum of all elements stored in an array.
c. Write a program to arrange the ‘n’ numbers stored in the array in ascending and descending order.
d. Write a program that performs addition and subtraction of matrices.
e. Write a program that performs multiplication of matrices.
9. Pointers
a. Write a program to demonstrate the use of pointers.
b. Write a program to perform addition and subtraction of two pointer variables.
10. Structures and Unions
a. Programs on structures.
b. Programs on unions.Tools:
We used turbo c++ or c to run above programs. You can also Download it.
Turbo C++ Shortcuts:
S.No.
|
Shortcuts keys
|
Action
|
1. |
F1
|
For Help
|
2. |
F2
|
Save
|
3. |
F3
|
Open
|
4. |
F4
|
Go to cursor
|
5. |
F5
|
Zoom
|
6. |
F6
|
Next
|
7. |
F7
|
Trace into
|
8. |
F8
|
Step over
|
9. |
F9
|
Make
|
10. |
F10
|
Menu
|
11. |
Alt+X
|
Quit
|
12. |
Alt+Bksp
|
Undo
|
13. |
Shift+Alt+Bksp
|
Redo
|
14. |
Shift+Del
|
Cut
|
15. |
Ctrl+Ins
|
Copy
|
16. |
Shift+Ins
|
Paste
|
17. |
Ctrl+Del
|
Clear
|
18. |
Ctrl+L
|
Search again
|
19. |
Alt+F7
|
Previous error
|
20. |
Alt+F8
|
Next error
|
21. |
Ctrl+F9 'or' Alt+R+Enter
|
Run
|
22. |
Ctrl+F2
|
Program reset
|
23. |
Alt+F9
|
Compile
|
24. |
Alt+F4
|
Inspect
|
25. |
Ctrl+F4
|
Evaluate/Modify
|
26. |
Ctrl+F3
|
Call stack
|
27. |
Ctrl+F8
|
Toggle breakpoint
|
28. |
Ctrl+F5
|
Size/Move
|
29. |
Alt+F3
|
Close
|
30. |
Alt+F5
|
User screen
|
31. |
Alt+0
|
List all
|
32. |
Shift+F1
|
Index
|
33. |
Ctrl+F1
|
Topic search
|
34. |
Alt+F1
|
Previous topic
|
35. |
Ctrl+F7
|
Add watch
|
36. |
Alt+Enter
|
Toggle screen mode(Full Screen / Window)*
|
BOOKS:
Let Us C - Yashwant P. Kanetkar.
Programming with C - Byron Gottfried.
Tutorials:
How Computer Programs Work