Giter VIP home page Giter VIP logo

the-c-programming-language's Introduction

Hey there! My name is Federico πŸ‘‹

I'm an Electronic Engineer enchanted by microcontrollers

I've been working as Embedded Software Engineer for the last 5 years.

I'm a beatlemanica & Rosario Central fan from 5 to 8. Ringo is my fourth favorite beatle!


πŸ“ I'm currently teaching myself 🐍 python.

🌴 In my free time you can find me hiking the appalachian trails ⛰️, racing RC cars πŸš— or playing chess β™ŸοΈ. Everything well seasoned with Rock & Roll.


πŸ“« Any kind of submissions are welcome!

Twitter | [email protected] | in/federico-ceccarelli

the-c-programming-language's People

Contributors

fededc88 avatar

Stargazers

 avatar

Watchers

 avatar

the-c-programming-language's Issues

Exercise 4-2

Extend atof to hadle scientific notation of the form
123.45e-6
where a floating-point numver may be followed by e or E and an optionaly signed exponent.

Exercise 4-9

Our getch and ungetch do not handle a pushed-back EOF correctly. Decide what their properties ought to be i an EOF is pushed back, then implement your desing.

Excercise 4-3

Given the basic framework, it's straightforward to extend the calculator. Add the modulus (%) operator and provision for negative numbers.

Exercise 4-12

Adapt the ideas of pinttd to write a recursive version o itoa; that is, convert an integer into a string by calling a recursive routine.

Exercise 4-5

Add access to library functions like sin, exp and pow. See <nath.h> in Appendix B, Section 4.

Exercise 4-6|

Add commnds for handling variables. (ItΕ› easy to provide twenty-six variables with single-letter names.) Add a variable for the most recently printed value.

Exercise 4-1

Write the funtion strrindex(s, t), which eturns the position of the rightmost occurrence of t in s, or -1 if there is none.

Exercise 4-10

An alternate organization uses getline to read an entire input line, this makes getch and ungetch unnecessary. Revise calculator to use this pproach.

Excercise 4-14

Define a macro swap(t, x, y) that interchanges two arguments of type t. (Block structure will help.)

Exercise 4.11

Modify getop so that it doesn't need to use ungetch. Hint: use an internal static variable

Excercise 4-7

Write a routine ungets(s) that will push back an entire string onto the input. Should ungets know about buf and bufp, or should it just use ungetch?

Excercise 4-4

Add commands to print the top element o the stack without poping, to duplicate it, and to swap the top two elements. Add a command to clear the stack.

Exercise 4-8

Suppose that there will never be more than one character of pushback. Modify getch and ungetch accordingly.

Exercise 4-13

Write a recursive version of the function reverse(s), which reverses the string s in place

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.