What is the difference between AF_INET and PF_INET in socket programming??

What is the difference between AF_INET and PF_INET in socket programming? I'm confused between using AF_INET and PF...

How to use a Windows DLL with Java in Mac OS X??

I have seen some Java projects using taucs.dll, TAUCS—a C library of sparse linear solvers, through JNI in Windows...

How to increment a pointer address and pointer's value??

Let us assume, int *p; int a = 100; p = &a; What will the following code will do actually and how? p++; ...

Using the scanf() function?

I intend to modify each other letter of a particular string. But for the purposes of this program none of that occur...

What's the difference between * and & in C??

I'm learning C and I'm still not sure if I understood the difference between & and * yet. Allow me to try to ex...

While loop with fscanf?

int* data=(int*)malloc(size*sizeof(int)); int i=0,tmp; while(fscanf(m,"%d",&tmp)!=EOF)data[i++]=tmp; Why it's ...

What does \x mean in C/C++??

Example: char arr[] = "\xeb\x2a"; BTW, are the following the same? "\xeb\x2a" vs. '\xeb\x2a' ...

What's the difference between a file descriptor and file pointer??

I want to know the difference between a file descriptor and file pointer. Also, in what scenario would you use one ...

Execlp vs Execl?

Is there any occasion in which is better to use execl instead of execlp? I think that maybe when a program is in two...

“-bash: gcc: command not found” using cygwin when compiling c??

I just installed the latest version of Cygwin ans for some reason when I try to compile code, it always flashes me t...

Error due to #include<graphics.h>?

I am trying to compile a program which includes the graphics.h header file for C. I have added the graphics.h and wi...

Implementing a command line interpreter in C, special case?

#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;unistd.h&gt; #include &lt;string.h&gt; #include &lt;...

Conversion of Char to Binary in C?

I am trying to convert a character to its binary representation (so character --&gt; ascii hex --&gt; binary). I kn...

Data Compression Algorithms?

I was wondering if anyone has a list of data compression algorithms. I know basically nothing about data compression...

sysconf(_SC_CLK_TCK) what does it return??

I was trying to understand various sysconf macros.I have written a program as below. int main() { fprintf(stdou...