E.BALAGURUSAMY SOLUTION PROGRAMMING IN ANSI C: CHAPTER-6


Written by the most well known face of India’s IT literacy movement, this book is designed for the first course in C taken by undergraduate students in Computers and Information Technology. The revised edition maintains the lucid flow and continuity which has been the strength of the book.

Key Features
Code with comments are provided throughout the book to illustrate how the various features of the language are put together to accomplish specified tasks
Case Studies at the end of the chapters illustrate real-life applications using C
Programming Projects discussed in the appendix give insight on how to integrate the various features of C when handling large problems
“Just Remember” section at the end of the chapters lists out helpful hints and possible problem areas.
Guidelines for developing efficient C programs are given in the last chapter, together with a list of some mistakes that a less experienced C programmer could make.

VITAMIN A DEFICIENCY


 VITAMIN A DEFICIENCY1. Vitamin A Physiology1.1. Vitamin A and provitamin AThe term vitamin A should be used as the generic descriptor for retinoids exhibiting the qualitativebiological activity of retinol. The main molecular structure contains a cyclic part and a non-cyclic chainwith 5 double bonds in the all transposition. A functional group is found at the…

SOLUTION PROGRAMMING IN ANSI C: CHAPTER-5


5.1 Write a program to determine whether a given number is “odd” or “even” and print        the message        NUMBER IS EVEN       OR       NUMBER IS ODD       (a)  Without using the else option.       (b) With else option.   Algorithm:– Without using the else option Step 1:  Read  x. Step…

SOLUTION PROGRAMMING IN ANSI C: CHAPTER-4


Problem no.  4.1:Given the string“WORDPROCESSING”, Write  a program to read the string from the terminal and Display the same in the following format: (a)WORD PROCESSING (b)WORD PROCESSING (c)     W.P. Solution: #include<stdio.h> #include<conio.h> void main() { char s[10],d[11]; clrscr(); printf(“Enter the string:   “); scanf(“%4s%10s”,s,d); printf(“(a)%s %s\n”,s,d); printf(“(b)%s\n%s\n”,s,d); printf(“(c)%.1s.%.1s”,s,d); getch(); } Output: Enter the string:   WORDPROCESSING (a)  WORDPROCESSING (b)  WORD PROCESSING (c)  W.P.   Problem…

SOLUTION PROGRAMMING IN ANSI C: CHAPTER-3


EXERCISE NO.3.1:  Given the values of the variables X,Y and Z write a program to rotate their values such that X has the value of Y,Y has the value of Z and Z has the value of X. SOLUTION: #include<stdio.h> #include<conio.h> void main() { int x,y,z,temp; clrscr(); printf(“Enter the value of x,y,z\n”); scanf(“%d %d %d”,&x,&y,&z); temp=x;…