Skip to main content

2017 | Buch

C Recipes

A Problem-Solution Approach

insite
SUCHEN

Über dieses Buch

Solve your C programming problems with practical and informative recipes. This book covers various aspects of C programming including the fundamentals of C, operators and expressions, control statements, recursion, and user-defined functions. Each chapter contains a series of recipes that you can easily reference to quickly find the answers you are looking for.

C Recipes also contains recipes and solutions for problems in memory management, arrays, standard input and output, structures and unions, pointers, self-referential structures, data files, pre-processor directives, and library functions.

What You Will Learn

Master operators and expressions

Write user-defined functions

Work with structures and unions

Use pointers

Define self referential structures

Leverage library functions

Who This Book Is For

Those with some experience in C programming.

Inhaltsverzeichnis

Frontmatter
Chapter 1. Welcome to C
Abstract
Ritchie, with a group of researchers working at Bell Laboratories, also created a compiler for C. Unlike B, the C language is equipped with an extensive collection of standard types. In 1973, the new version of UNIX was released in which more than 90 percent of the source code of UNIX was rewritten in C, which added to its portability.
Shirish Chavan
Chapter 2. Control Statements
Abstract
This chapter presents recipes that exploit the power of control statements to solve problems. C is rich in control statements.
Shirish Chavan
Chapter 3. Functions and Arrays
Abstract
A derived type is built up using one or more basic types as building blocks. Both functions and arrays are derived types in C.
Shirish Chavan
Chapter 4. Pointers and Arrays
Abstract
Pointers are one of the most powerful features of the C language. Pointers allow you to create quite efficient programs in C. However, the logic behind these programs can be quite tricky.
Shirish Chavan
Chapter 5. Functions and Structures with Pointers
Abstract
In this chapter, you will explore the capabilities of functions and structures with the help of pointers. You can certainly use functions and structures without pointers. However, with the use of pointers, you need fewer lines of code to perform the same tasks.
Shirish Chavan
Chapter 6. Data Files
Abstract
The contents of a file can be retrieved and modified as per the requirements of the storage.
Shirish Chavan
Chapter 7. Self-Referential Structures
Abstract
A self-referential structure is a structure in which one of its members is a pointer to the structure itself.
Shirish Chavan
Chapter 8. Stacks and Queues
Abstract
A stack is an abstract data structure. Specifically, a stack is a list of elements in which you can insert the elements and also delete the elements from it. This list is open at one end and closed at the other end. The operations of insertion and deletion can be done only from the open end.
Shirish Chavan
Chapter 9. Searching and Sorting
Abstract
The current English meaning of the terms "searching" and "sorting" also holds good in computer science. Sometimes, this is not the case. For example, the current English meaning of the terms "root," "garbage or "tree" is very different from their meaning in computer science.
Shirish Chavan
Chapter 10. Cryptographic Systems
Abstract
In this chapter we will deal with application programs related to cryptography. In love, war and business, we need to send the messages secretly. The art and science of keeping the messages secure is called cryptography. A message to be dispatched is also called as plaintext or cleartext. Encryption is the process of converting the plaintext into a scrambled, unreadable message. This message is called ciphertext. The process of converting the scrambled message back into plaintext is called decryption.
Shirish Chavan
Chapter 11. Numerical Methods
Abstract
We use numerical methods to solve the equations and integrations for which exact solutions are not possible. Using numerical methods we find approximate solutions to these problems. Most of the real life problems fall in this category. While solving a problem using numerical methods, one has to perform a large number of computations by hand. Fortunately, computers are number crunchers, and hence, since the arrival of computers, this task has been mostly done by the computers. In this chapter, few numerical methods - listed below - are discussed in the context of C programming.
Shirish Chavan
Backmatter
Metadaten
Titel
C Recipes
verfasst von
Shirish Chavan
Copyright-Jahr
2017
Verlag
Apress
Electronic ISBN
978-1-4842-2967-5
Print ISBN
978-1-4842-2966-8
DOI
https://doi.org/10.1007/978-1-4842-2967-5