Thanks
Type: Posts; User: ph5
Thanks
Hi,
As part of my ongoing c programming education, I have written a program to use void pointers in a function, however, I am experiencing a strange issue for which I would appreciate some...
Hi, it was the additional brackets that I had issue with, earlier in the program, I had compilation errors without them, clearly I must have done something wrong.
Thanks for your assistance.
~P
Hi, so that I could understand void pointers I created the following program:
#include <stdio.h>
#include <string.h>
int main(void) {
char word[] = "Zero";
Many Thanks for the advice, I'm still learning C so this was a very good example of how powerful C is and just how easy it is to get things wrong.
I have just one question: Why did you increase...
Hi,
I recently wrote the following program to convert decimal numbers into binary numbers, the program works fine, however, my question is based around the prebit() function:
Is this good...
I can see what I've done now. I've changed as you said and it works, many thanks for your assistance.
As per your comment about the ascii chart (thank you), I have changed the code as follows:
*(memory+0) = 49;
*(memory+1) = 57;
*(memory+2) = 55;
*(memory+3) = 49;
I am still learning the C programming language and trying out various
things with pointers, so please bare with me.
I have written a program which allows me to view the memory contents
using a...
Sorted. Many Thanks to all for the advice, I've also seen a pratical example of a pointer to a pointer. Excellent.
Thanks
~P
Firstly, I'm new to C, so please bear with me.
I'm trying to increment a pointer, the following code works correctly with the
following output:
before number = [0], address = [0xbfec32b0}...