Top "C11" questions

C11 is the informal name of an older standard version (ISO/IEC 9899:2011) of the C programming language.

error C4996: 'scanf': This function or variable may be unsafe in c programming

I have created a small application to find max number by using user-defined function with parameter. When I run it, …

c windows visual-studio c11 tr24731
How to enable c11 on later versions of gcc?

I currently use gcc 4.6.3. My understanding is that gcc by default uses the gnu89 standard and I would like to …

c gcc c11
How to go from fopen to fopen_s

Visual Studio is complaining about fopen. I can't find the proper syntax for changing it. I have: FILE *filepoint = (fopen(…

c++ c windows c11 tr24731
When are anonymous structs and unions useful in C11?

C11 adds, among other things, 'Anonymous Structs and Unions'. I poked around but could not find a clear explanation of …

c struct c11
What is the default C -std standard version for the current GCC (especially on Ubuntu)?

When I ask to see the current version of cc I get this. $ cc --version cc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 …

c ubuntu gcc c99 c11
Multi-Threading support in c11

The new C11 standard provides a support for Multi-Threading. My Questions are a bit diversified but definitely answerable. I have …

c multithreading c11
String input using C scanf_s

I've been trying to look for answer myself, but I can't find one. I want to insert a part of …

c string scanf c11 tr24731
Syntax and Sample Usage of _Generic in C11

I heard C11 added generics. I've googled a bit, looked at some articles, understood there's a new keyword ( _Generic ) and …

c generics c11
Why does auto a=1; compile in C?

The code: int main(void) { auto a=1; return 0; } gets compiled without errors by the MS Visual Studio 2012 compiler, when the …

c auto c11
difference between c99 and c11

I am learning c, presently. The book I read is C99 based. I want to update my knowledge to C11 …

c c99 c11