#### Overview of this book

Used in everything from microcontrollers to operating systems, C is a popular programming language among developers because of its flexibility and versatility. This book helps you get hands-on with various tasks, covering the fundamental as well as complex C programming concepts that are essential for making real-life applications. You’ll start with recipes for arrays, strings, user-defined functions, and pre-processing directives. Once you’re familiar with the basic features, you’ll gradually move on to learning pointers, file handling, concurrency, networking, and inter-process communication (IPC). The book then illustrates how to carry out searching and arrange data using different sorting techniques, before demonstrating the implementation of data structures such as stacks and queues. Later, you’ll learn interesting programming features such as using graphics for drawing and animation, and the application of general-purpose utilities. Finally, the book will take you through advanced concepts such as low-level programming, embedded software, IoT, and security in coding, as well as techniques for improving code performance. By the end of this book, you'll have a clear understanding of C programming, and have the skills you need to develop robust apps.
Preface
Creativity with Graphics
Improving the Performance of Your Code
Other Books You May Enjoy

# Finding whether a number is an Armstrong number

An Armstrong number is a three-digit integer that is the sum of the cubes of its digits. This simply means that if xyz = x3+y3+z3, it is an Armstrong number. For example, 153 is an Armstrong number because 13+53+33 = 153.

Similarly, a number that comprises four digits is an Armstrong number if the sum of its digits raised to the power of four results in that number. For example, pqrs = p4+q 4+r 4+s4.

# How to do it…

1. Enter a number to assign to the n variable:
`printf("Enter a number ");scanf("%d",&n);`
1. Invoke the findarmstrong function. The value assigned to n will get passed to this function:
`findarmstrong(n)`
1. In the...