Top "C" questions

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

What is *(uint32_t*)?

I have a hard time understanding *(uint32_t*). Let's say that I have: uint32_t* ptr; uint32_t num *(uint32_…

c uint32-t
Convert unsigned int to signed int C

I am trying to convert 65529 from an unsigned int to a signed int. I tried doing a cast like this: …

c int unsigned-integer
ISO C90 forbids mixed declarations and code in C

I declared a variable in this way: int i = 0; I get the warning: ISO C90 forbids mixed declarations and code …

c variables
Linker error: "linker input file unused because linking not done", undefined reference to a function in that file

I'm having trouble with the linking of my files. Basically, my program consists of: The main program, gen1. gen1 - …

c++ c gcc makefile linker-errors
How do I compile the asm generated by GCC?

I'm playing around with some asm code, and something is bothering me. I compile this: #include <stdio.h> …

c gcc compiler-construction assembly
int main() vs void main() in C

In C, I know that int main() returns an int where void main() does not. Other than that, is there …

c int main void
Is gcc's __attribute__((packed)) / #pragma pack unsafe?

In C, the compiler will lay out members of a struct in the order in which they're declared, with possible …

c gcc pragma-pack
Compile error: "g++: error trying to exec 'cc1plus': execvp: No such file or directory"

When I compile C/C++ program with popen in php... I got this error: g++: error trying to exec 'cc1…

php c++ c linux gcc