Topics

C

About this topic: Articles tagged __TAG__

Showing 160 articles

Topics

Articles

Showing 160 articles

How-tos Logical XOR Operator in C This article explains the logical XOR operator in C programming, detailing its syntax, applications, and implementation. Learn how to use XOR for toggling states, error detection, … How-tos Null Terminated Strings in C Explore the intricacies of null-terminated strings in C with this comprehensive tutorial. Learn how to create, manipulate, and avoid common pitfalls associated with these strings. … How-tos How to Get Substring in C This article introduces how to get a substring in C, covering various methods like custom functions, `strncpy`, and pointer arithmetic. Learn to manipulate strings efficiently and … How-tos Static Variable in C This article introduces static variables in C, explaining their usage, benefits, and limitations. Learn how to efficiently retain variable values between function calls and … How-tos How to Write to File in C This article introduces how to write to file in C, covering essential techniques like creating, appending, and managing file operations. Learn practical examples and error handling … How-tos How to Create a Table in C Learn how to create tables in C using arrays with this comprehensive guide. Discover one-dimensional and two-dimensional arrays, and explore functions to handle tables effectively. … How-tos How to Compile a C File on Mac This tutorial demonstrates how to compile a .c file on a Mac operating system. Learn the essential commands to compile C files using the terminal, how to utilize Makefiles for … How-tos How to Convert Char* to Int in C This article demonstrates how to convert char pointer to int in C. How-tos How to Get Length of Char Array in C This article demonstrates how to get the length of a char array in C. How-tos How to Print to Stderr in C This article introduces how to print to stderr in C. How-tos How to Print to Stderr in C This article introduces how to print to stderr in C. How-tos Types of Shift Operators in C This article introduces how to use the right shift arithmetic operator in C. Right shifting to one position moves each bit to the right by one. The >> operator is a logical shift … How-tos How to Convert a Binary to Decimal in C This article comprehensively discusses multiple C implementations to convert binary numbers into decimal equivalents. How-tos How to Get File Size in C This article demonstrates various approaches to get file size in C, ranging from standard C library functions to platform-specific APIs. How-tos How to Convert an Integer to a String in C This tutorial introduces different methods in C to convert an integer into a string. It describes the use of the sprintf(), snprintf(), and itoa() functions in C. How-tos How to Create Array of Structs in C This tutorial introduces the different methods to create an array of structs in C. How-tos How to Allocate Struct Memory With malloc in C This article demonstrates how to allocate struct memory with malloc in C. How-tos How to Use the gettimeofday Function in C This article demonstrates how to calculate elapse time in a code block in C. How-tos How to Concatenate String and Int in C This article introduces how to concatenate string and int in C How-tos How to Print Numbers in Scientific Notation in C This article introduces how to print numbers in scientific notation in C. How-tos How to Get Extended Attributes of File in C This article demonstrates how to get extended attributes of a file in C using getxattr. How-tos The %p Format Specifier in C In this article, we will delve into the intricacies of the %p format specifier in C, exploring its functionality, use cases, and the nuances of working with pointers. How-tos Sign Extend a 9-Bit Integer in C We are going to learn how to sign extend a nine-bit integer in C in this tutorial. How-tos How to Get a Substring in C This tutorial introduces different methods in C to get a substring from a char. This tutorial describes the use of memcpy() function, strncpy() function, pointer arithmetic, and …

← All topics