Search:

Type: Posts; User: kuasimikua

Search: Search took 0.01 seconds.

  1. Thank you for the responses. Cheers a lot !

    Thank you for the responses. Cheers a lot !
  2. Requesting help on problem regarding using "^=" on strings

    Hi all, I am having trouble understanding the answer for this exercise in KNKING c programming a modern approach book

    make a function
    (d) strrev(s) -- Reverses the characters in s (except the...
  3. Replies
    0
    Views
    5,041

    Question regarding file position, fseek

    Hi all, I am currently doing an exercise in KNKING C program a modern approach. THis exerise

    ----------------------
    Of the many techniques for compressing the contents of a file, one of the...
  4. Help with code

    I see, thank you everyone for the input. I have a question regarding my code related to the exercise, this part of the code (and a particular line in question)


    while (...
  5. Thank you sir! That seems to work :) May i ask...

    Thank you sir! That seems to work :) May i ask how do you do this in cmd?

    $ od -t x1 out.data
    0000000 46 6f 6f 20 62 61 72 21 21 21 20 20 20 20 20
    0000017
  6. How exactly do i "create" a binary file to check if my program works?

    Hi all, I am currently doing an exercise in KNKING C program a modern approach. THis exerise

    ----------------------
    Of the many techniques for compressing the contents of a file, one of the...
  7. I see. Thank you all for the reply! :)

    I see. Thank you all for the reply! :)
  8. I see. So some "commands" in the library can be...

    I see. So some "commands" in the library can be both macros AND functions (and if used they are macros, unless i add "()" to them to force the machine to compile it as a function), while some...
  9. Thread: Dice

    by kuasimikua
    Replies
    12
    Views
    5,771

    else int i = roll (); your pgoram only...

    else

    int i = roll ();

    your pgoram only rolls the dice ONE MORE TIME if the first roll is not 6.
  10. Question regarding library functions/macros

    Hi everyone, I am currently learning C using KNKing C prrogramming a modern approach.

    I am currently learning about the functions in the stdio.h library. There are some parts where it talks about...
  11. Hi sir, thank you so much for your help. Ive...

    Hi sir, thank you so much for your help. Ive managed to figure it out how it works. Bless you :)
  12. Requesting assistance regarding bit(wise) example

    Hi all, I have just started on the low level programming chapter in KNKING C programming book, and am confused by this exercise. This is what it does.

    (a) Write the following function...
  13. Hi sir that seems to have been causing the...

    Hi sir that seems to have been causing the proble. Looks like i forgot to remove that line under return first lol .___.

    Thank you!!!! Solved.
  14. [Help} Array of integers keeps returning value 2

    Hi all, am currently doing a project from KNKing's C program a modern approach.

    3 files involved. queueADT.h, queueADT.c, stackclient.c

    code for queueADT.h



    #ifndef QUEUE_H#define QUEUE_H
  15. Thank yoU!

    Thank you for the help sir! Fixed :)))
  16. Yes

    Yes sir I get what you are saying, normally theres 2 pointers. But this is an exercise in a textbook (c programming a modern approach) which asks that
    Modify the delete_from_list function so that...
  17. Requesting clarification regarding double pointers and linked lists

    Hi everyone, I am currently learning C using KNKing's book. Currently I'm confused by pointers to pointers/linked lists and would like to kindly request for some help and clarifications, with regards...
  18. How do i make my readline function accept empty input?

    Hi all, title. Basically this is my readline


    int read_line(char str[], int n){
    int ch, i = 0;


    while (isspace(ch = getchar()))
    ;
    while (ch != '\n' && ch != EOF) {
Results 1 to 18 of 18