Thank you very much for clearing that up.
Type: Posts; User: ladesidude
Thank you very much for clearing that up.
folks,
I am trying to understand forking. I know fork() is multithreading or multitasking (from wikipedia). I have the following program that I am running using cygwin:
#include <stdio.h>...
OK, so if they are pointers of type int, they are of the same type, but because they have different values, the == will fail. Am I correct in assuming this?
I ran this code:
if(a1 == a2)
printf("Equal %i",a1==a2);
else
printf("Not Equal %i\n", a1 != a2);
and it came back saying not equal, but this doesnt prove that they are of the same...
How can I prove that a1,a2 and a3 are of the same type?
To really dumb this down, a1, a2 and a3 are of the same type while int2ptr is different from a1?
So, is it safe to say that a1, a2 and a3 are of the same type as they are on the heap?
Hi,
I have this program in C, and have commented each line as per my understanding. At the end, I have some questions which I havent been able to understand. Any help would be appreciated.
...
Lets say that we forget -1 for a moment, what I would like to understand is why would char** h_aliases accept an integer as the last argument and not a string?
Hi all,
I need to understand this point, so perhaps someone would be able to help. The following code:
struct hostent {
138 char* h_name; ;; official name
139 ...