Fundamental Concepts in Programming Languages : 2

2. Basic concepts: 2.1. Assignment commands One of the characteristic features of computers is that they have a store into which it is possible to put information and from which it can subsequently be recovered. Furthermore the act of inserting an item into the store erases whatever was in that particular area of the store…

Fundamental Concepts in Programming Languages : 1

Abstract. This paper forms the substance of a course of lectures given at the International Summer School in Computer Programming at Copenhagen in August, 1967. The lectures were originally given from notes and the paper was written after the course was finished. In spite of this, and only partly because of the shortage of time,…


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.


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…


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;…