×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

C Programming

C is a powerful and early programming language which is a former version of C++. It is a procedural language and is used in educational institutions widely.

Software Engineering

Reverse a large file using IO Syscalls (using chunks)

In this article, we have used different system calls (syscalls) in order to reverse a large file (>1GB) using a chunk size rather than character by character. We have demonstrated this with a C code.

Arathy Rose Tony
Software Engineering

Introduction to I/O System call, file descriptor and modes in C

In this article, we shall learn the basics of I/O syscalls, file descriptors and modes in C. System calls include open. close. creat and more.

Arathy Rose Tony
Software Engineering

Complex number in C Programming language

In this article, we will explore how to use complex numbers in C. There are two approaches: one is to implement it using struct in C and the other solution is to use complex.h library.

Subhash Bhandari
Software Engineering

Delete an array in C

In this article, we have explored how to delete or deallocate an array in C. By deleting an array, we mean to deallocate the memory that was assigned to the array so that it can be reused.

Rasika Kedia
Software Engineering

Traversing folders in C recursively

In this article, we have explored how to traverse folders in C recursively. We have used the dirent.h library to achieve this along with basic methods like readdir, opendir and closedir.

Khitish Panigrahi Khitish Panigrahi
Software Engineering

Different ways to terminate a program in C

In this article, we are going to learn about various methods by which we can terminate a C program which is currently in execution. Starting with the most widely used and most obvious function that is by using the exit() function.

Khitish Panigrahi Khitish Panigrahi
Software Engineering

Using complex.h header file in C

In this article, we have explored the complex.h header file in C. The header file complex.h defines macros and functions to carry out operations on complex numbers in C.

Arpitha Malavalli
Software Engineering

Three dimensional (3D) array in C

A 3D array is a multi-dimensional array (array of arrays). A 3D array is a collection of 2D arrays. We have explored 3D arrays in C in depth from defining such array along with basic operations.

Subhash Bhandari
Software Engineering

Two dimensional (2D) array in C

In this article, we have explored 2D arrays in C including declaring 2D array, calculating size, inserting elements and updating 2D array, convert 3D array to 2D array and using malloc to define 2D arrays in C.

Subhash Bhandari
Software Engineering

Put array in register in C/ C++

Placing an array in a register can improve performance significantly but only statically allocated array can be placed in a register explicitly as we cannot deal with memory location directly. We have explained this in detail.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Variadic function in C/ C++

Variadic functions in C and C++ are the functions that can take any number of arguments. This is a central part of utilities like printf. We have explained this in detail with examples.

Khitish Panigrahi Khitish Panigrahi
Software Engineering

Rounding Functions in C / C++

In this article, we have focused on different rounding functions in C and C++ such as floor, ceil, round, trunc and fmod. We have explained each in detail with C++ code examples.

Ankit Rustagi Ankit Rustagi
Software Engineering

Variables in C

Variable in C is a name of a memory location which holds a particular data as defined in the program. We have covered all points related to variables and the different types of variables as well.

Subhash Bhandari
Software Engineering

Hyperbolic functions in math.h (C/C++)

In this article, we have explored all hyperbolic functions in math.h library of C and C++ with code examples. It includes functions like Complex Hyperbolic Cosine (cosh), Inverse Hyperbolic Cosine (acosh), Complex Inverse Hyperbolic Cosine (cacosh) and other variants for sin and tangent.

Jyothirmai Thimmaraju Jyothirmai Thimmaraju
Software Engineering

chdir(), fchdir() and getcwd() in C

chdir() and fchdir() are functions in C listed in unistd.h header file which is used to change the current working directory through code. This can be verified by getcwd() function.

Devansh Thapa Devansh Thapa
Software Engineering

Understand Pointers in C in depth

In C, pointer refers to a specific memory location and gives the programmer finer control. There are several types of pointers like dangling pointer. We have explored everything in depth.

Shobhit Sinha Shobhit Sinha
Software Engineering

Understand use of Pointers (*) in C and C++

A pointer in C and C++ is a variable that contains a memory address which is usually the address/ location of another variable in the memory.

Ishneet Kaur Ahuja
Software Engineering

Ternary Operator in C

Ternary operator in C is an alternative syntax for if else conditional statement. It is usually used to condense if else statements.

Shobhit Sinha Shobhit Sinha
Software Engineering

Get length of array in C and C++

In C and C++, we find the length of an array we need to use the sizeof operator and get the length as size of entire array divided by size of an element.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

How to ban use of some functions in C and C++?

The approach to prevent the use of functions is to replace the function definition (using macros) with a dummy definition with a message that the function is banned from use.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Introduction to Make and Makefile

We have explained the concepts behind Make tool and Makefile which forms the basics of compiling and building executable for a C/ C++ project codebase.

Kshitiz Saini Kshitiz Saini
Software Engineering

strncmp vs strcmp in C

The only difference between strncmp and strcmp in C is that strncmp compares only the first N characters while strcmp continues until the termination conditions are met.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Get address of a variable in C

To get address of a variable in C, we use the address of (&) operator, the %p specifier to print it and a casting of (void*) on the address.

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Rounding and Truncating numbers using math.h in C

In this article, we have explored how to round and truncate numbers in C using the math.h library. that is round(), roundl(), trunc(), truncl() and others

Sun Rakeshbhai Gajiwala
Software Engineering

strncmp in C

strncmp is a function in C which is used to compare two array of characters upon N indexes and return if the first array is less, equal or greater than the second array.

OpenGenus Tech Review Team OpenGenus Tech Review Team
OpenGenus IQ © 2025 All rights reserved ™
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship