Computer Science, asked by vyomeshbhaisureja, 9 months ago

The program in illustrate the use of integer constants on a 16-bit machine. The output in shows that integer values larger than 32767 are not properly stored on a 16-bit machine. However, when they are qualified as long integer (by appealing L), the value are correctly stored.

Answers

Answered by yadavds100
1

Program that illustrates the use of integer constants on a 16-bit machine. The output in figure 2.3 shows that the integer values larger than 32767 are not properly stored on a 16-bit machine. However, when they are qualified as long integer (by appending L), the values are correctly stored.

Code for Representation of integer constants on 16-bit machine in C Programming

main()

{

printf("Integer values\n\n");

printf("%d %d %d\n", 32767,32767+1,32767+10);

printf("\n");

printf("Long integer values\n\n");

printf("%ld %ld %ld\n", 32767L,32767L+1L,32767L+10L);

}

Output

Integer values

32767 -32768 -32759

Long integer values

32767 32768 32777

<marquee><font color="red">mark me BRANLIST</font>

Answered by nitashachadha84
0

Answer:

Mark me as brainliest

Explanation:

This is a C Programming Tutorial for people who have a little experience with an interpreted programming language, such as Emacs Lisp or a GNU shell.

Edition 4.02

Copyright © 1987,1999 Mark Burgess

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Preface:

Introduction:

Reserved words & example:

Operating systems:

Libraries:

Programming style:

Form of a C program:

Comments:

Functions:

Variables:

Parameters:

Scope:

Preprocessor:

Pointers:

Standard Output and Standard Input:

Assignments Expressions and Operators:

Decisions:

Loops:

Arrays:

Strings:

Putting together a program:

Special Library Functions and Macros:

Hidden Operators:

More on Data Types:

Machine Level Operations:

Files and Devices:

Structures and Unions:

Data structures:

Recursion:

Example Programs chapter:

Errors and debugging:

Summary:

reserved words list:

Comparisons :

Character Conversion Table:

Emacs style file:

Answers to questions:

Index:

Node:Preface, Next:Introduction, Previous:Top, Up:Top

Preface

Every program is limited by the language which is used to write it. C is a programmer's language. Unlike BASIC or Pascal, C was not written as a teaching aid, but as an implementation language. C is a computer language and a programming tool which has grown popular because programmers like it! It is a tricky language but a masterful one. Sceptics have said that it is a language in which everything which can go wrong does go wrong. True, it does not do much hand holding, but also it does not hold anything back. If you have come to C in the hope of finding a powerful language for writing everyday computer programs, then you will not be disappointed. C is ideally suited to modern computers and modern programming.

This book is a tutorial. Its aim is to teach C to a beginner, but with enough of the details so as not be outgrown as the years go by. It presumes that you have some previous aquaintance with programming -- you need to know what a variable is and what a function is -- but you do not need much experience. It is not essential to follow the order of the chapters rigorously, but if you are a beginner to C it is recommended. When it comes down to it, most languages have basically the same kinds of features: variables, ways of making loops, ways of making decisions, ways of accessing files etc. If you want to plan your assault on C, think about what you already know about programming and what you expect to look for in C. You will most likely find all of those things and more, as you work though the chapters.

The examples programs range from quick one-function programs, which do no more than illustrate the sole use of one simple feature, to complete application examples occupying several pages. In places these examples make use of features before they have properly been explained. These programs serve as a taster of what is to come.

Similar questions