Hey there, it's been a long time since I've asked a question on this site!
I've started building my library management project, however, I have ran into a problem involving scanning string input. Data for new books is saved to a structure: book name and author(both strings), year published and...
According to my IDE (CodeBlocks), this bit of code causes a seg fault. I'm trying to fix this but I don't even know why this causes a seg fault so an explanation would be helpful.
```
unsigned char* pixel_offset = data + (j + width * i) * byte_per_pixel;
unsigned char y...
Hi, i'm a newbie and my teacher gave me an exercis with strings and arrays where i had to lowercase, uppercase ecc a string.
Now i'm stuck with my code where i have to replace a random letter of the string with a random letter without using any library that simplify the problem.
That's the code...
I am new to programming and I have to do a little program that has an array of n elements and i have to find the largest 4 numbers and to calculate the sum of them.
Sorry if i didn t used the code function very good, but on phone i have some issues with the editor.
Thanks for your help!
As an...
Hello there,
I introduce to you all: Xv6, a recreation of the sixth version of the original UNIX operating-system, written purely in C(just like UNIX). The operating-system was created purely for educational purposes at MIT and is much simpler for analysis than a Linux or BSD kernel.
The...
Introduction
Hello there,
Not too long ago, I began working on a simulation project as a way to sharpen my C programming skills. I wasn't happy with it, so I restarted it. As of today, I'm finally giving it away as I no longer want to work on the project, but, I do not want to dispose of it...
Hi!
I'm trying to learn pure C. I made a simple program with definitions of various variables there can be. Everything seems okay, but my char definied as "W" shows in the program as "h". I do not know why it is like that. Any help would be greatly appreciated.
The program:
My execution of...
Introduction
Welcome to the first tutorial in the C Tutorial Series, here on CF. In today's tutorial, we will be covering the following things:
Printing out text
Variables and their different data-types(char, int, float, and double)
Commenting your code
These are the prime basics that you will...
Introduction
Hey there, readers. I'd like to introduce you to the C Tutorial Series - A series in which I'll be teaching you the syntax of C and the concepts of the language and procedural-programming. You'll learn many new things in this series that can be transferred over to other languages...
If you happen to be struggling with the exercises and code-samples given to you in The C Programming Language by Brian W. Kernighan and Dennis Ritchie(K&R), then feel free to visit this GitHub repository: https://github.com/caisah/K-and-R-exercises-and-examples
It provides all of the solutions...
What Is C?
Invented at AT&T Bell Labs(Now 'Nokia Bell Labs') in 1972 by Dennis Ritchie(Deceased since 2011). Unlike many other Languages,
C is a Procedural-Language. So, there are no such thing as Classes or Inheritance or Generics. C is purely based on
Functions, If-Else Statements, Loops and...
Hey everyone.
Welcome to this C-Programming Tutorial. In today's Tutorial, I'm going to be showing you how to make a simple Guessing Game in C. Let's begin.
First of all, choose where you want to store your Files. Is it in your Documents Directory, a separate Hard-Drive, choose where it will...
So, you're starting off in the C Programming-Language. Once a popular Language that is still used but just less used than C++. Well, if you are learning C and you want to know how to Compile your Programs then you've come to the right place.
NOTE: This is a Tutorial for Linux-Systems. It has...
#include <stdio.h>
int main(void) {
int usr_num = 0; // The Number that the User inserts
int app_num = 56; // The Number that the Program is thinking of
// Welcome Message
printf("Hey. I'm thinking of a Number. Try and guess it and I'll tell you if you're right: ");
//...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.