More Related Content
Similar to An imperative study of c (20)
More from Tushar B Kute (20)
An imperative study of c
- 1. Tushar B. Kute, Department of Information Technology, Sandip Institute of Technology and Research Centre, Nashik An Imperative Study of ‘C’
- 5. Two views of program user interface software layers hidden by user interface user’s view programmer’s view
- 18. while Loop while (continuation-condition) { // loop-body; }
- 19. while Loop Flow Chart, cont. int i = 0; while (i < 100) { printf("Welcome to C!"); i++; }
- 20. do-while Loop do { // Loop body; } while (continue-condition);
- 21. for Loop for (initialization; condition; increment/decrement) { //loop body; }
- 29. Arrays Array is a data structure that represents a collection of the same types of data. An Array of 10 Elements of type int
- 62. Memory map for arrays a[i].roll a[i].name a[i].marks i 2 1 9 3 0 7 6 5 4 8 a[5].roll a[9].name
- 69. Pointer Example int *p, x, y, *q = NULL; p = &x; *p = 4; p x (or *p) y 4 ? p = &y; p x y 4 ? *p is now another name for y q q . .
- 70. *p = 8; p x y 4 8 q = p; p x y 4 8 q *p or *q q *p .
- 71. p = &x; p x y 4 8 *q *p = *q; p x y 8 8 q *p q *p *q 8