Top "C" questions

C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform.

Difference between passing array and array pointer into function in C

What is the difference between the two functions in C? void f1(double a[]) { //... } void f2(double *a) { //... } If I …

c arrays function parameter-passing space-efficiency
Converting Char * to Uppercase in C

I'm trying to convert a char * to uppercase in c, but the function toupper() doesn't work here. I'm trying to …

c string pointers strtok
Does stack grow upward or downward?

I have this piece of code in c: int q = 10; int s = 5; int a[3]; printf("Address of a: %d\n", (…

c memory stack
In C find position of substring in a string

Here is a program to accept a: Sentence from a user. Word from a user. How do I find the …

c string substring strstr
C: for loop int initial declaration

Can someone elaborate on the following gcc error? $ gcc -o Ctutorial/temptable.out temptable.c temptable.c: In function ‘main’: …

c for-loop gcc syntax-error
Why isn't the size of an array parameter the same as within main?

Why isn't the size of an array sent as a parameter the same as within main? #include <stdio.h&…

c arrays function sizeof
how to use gettimeofday() or something equivalent with Visual Studio C++ 2008?

Could someone please help me to use gettimeofday() function with Visual Studio C++ 2008 on Windows XP? here is a code …

c visual-studio visual-studio-2008 visual-c++ gettimeofday
Size of pid_t, uid_t, gid_t on Linux

On Linux systems (either 32- or 64-bit), what is the size of pid_t, uid_t, and gid_t?

c linux 64-bit 32-bit sizeof
Declaring pointers; asterisk on the left or right of the space between the type and name?

Possible Duplicates: What makes more sense - char* string or char *string? Pointer declarations in C++: placement of the asterisk …

c++ c pointers
Measuring time taken by a function: clock_gettime

I am trying to measure how long a function takes. I have a little issue: although I am trying to …

c timing clock