
C Cheat Sheet - GeeksforGeeks
Jul 23, 2025 · In this Cheat Sheet, we will delve into the basics of the C language, exploring its fundamental concepts that lay the groundwork for programming. We will cover topics such as …
C Programs - GeeksforGeeks
Dec 27, 2025 · To help you master C programming, we have compiled over 100 C programming examples across various categories, including basic C programs, Fibonacci series, strings, arrays, …
C Basic Syntax - GeeksforGeeks
Jul 23, 2025 · The basic syntax of the C program consists of the header, main () function, variable declaration, body, and return type of the program. The header is the first line in the C program with …
C - if Statement - GeeksforGeeks
Jul 23, 2025 · The if in C is the simplest decision-making statement. It consists of the test condition and a block of code that is executed if and only if the given condition is true. Otherwise, it is skipped from …
C Exercises - Practice Questions with Solutions for C Programming
Jul 23, 2025 · Learning C language is made easier with this exercise sheet as it helps you practice all major C concepts. Solving these C exercise questions will take you a step closer to becoming a C …
C Structures - GeeksforGeeks
Oct 25, 2025 · In C, a structure is a user-defined data type that can be used to group items of possibly different types into a single type. The struct keyword is used to define a structure.
Multithreading in C - GeeksforGeeks
Jul 23, 2025 · In C programming language, we use the POSIX Threads (pthreads) library to implement multithreading, which provides different components along with thread management functions that …
Strings in C - GeeksforGeeks
Nov 14, 2025 · Below, the common methods of reading strings in C will be discussed, including how to handle whitespace, and concepts will be clarified to better understand how string input works.
rand () in C - GeeksforGeeks
Jul 23, 2025 · The rand () function in the C programming language is used to generate pseudo-random numbers. It is used in C to generate random numbers in the range 0 to RAND_MAX.
printf in C - GeeksforGeeks
Oct 18, 2025 · Different specifiers are used for different data types, like %d for integers, %f for floats, %c for characters, and %s for strings. In addition to working as placeholders, format specifiers can also …