×
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

Size of struct in C/ C++

We have explained how to calculate the memory size of a struct in C and C++ Programming Language. To find the actual size, you need to understand two concepts of padding and packing. The size is not the sum of individual elements so read on.

Abhishek Singh
Software Engineering

How to take string input in C?

We have explained how to take string input in C Programming Language using C code examples. We have explained different cases like taking one word, multiple words, entire line and multiple lines using different functions.

Abhishek Singh
Software Engineering

calloc() in C / C++

We have explained the use of calloc() function in C / C++ which is used for Dynamic Memory Allocation. We have explained it with code examples with different situations.

Satvik Singh
C++

Static and extern pointers in C/ C++

Static and extern are storage classes in C which defines scope and life-time of a variable. Similar to any variables in C, we can use these keywords with pointers for different use cases.

Aditya L Rao
Software Engineering

Process of deleting an array in C++

We have explained how to delete an array or delete an element in an array in C++. We can covered the case of static and dynamic memory allocated array along with the basics of array.

Hritik Bhardwaj
Software Engineering

Dynamic vs Static memory allocation in C

We have compared the differences with Dynamic Memory Allocation and Static Memory Allocation in C Programming Language. We cover the basics of memory and the different types of memory allocation as well.

Nimrat Matharoo
Software Engineering

Static Variables in C

We have covered static variables in C and discussed Introduction to static variables, Difference between static and automatic variables and Important points related to static variables.

Nandita Tomar Nandita Tomar
Software Engineering

Implementing rmdir using C/ C++

We have developed the rmdir command of UNIX systems in C and C++ by using the remove and nftw system functions to delete a directory.

Sahil Silare Sahil Silare
Software Engineering

Implementing mkdir in C/ C++

We have developed the mkdir command of UNIX systems in C and C++ by using the mkdir function to create a directory.

Sahil Silare Sahil Silare
Software Engineering

Implementing cd command in C/ C++

We have developed the cd command of UNIX systems in C and C++ by using the chdir function.

Sahil Silare Sahil Silare
Software Engineering

Implementing pwd command in C/C++

We will use the header file dirent.h for directory structures and objects and implement our pwd command in C/C++. This will involve the getcwd() function call.

Sahil Silare Sahil Silare
Software Engineering

Different ways to print in C

Different ways to print in C are Formatted and Unformatted Output Functions, Printing using Formatted Function - printf(), putchar() and puts(). We have covered it with C code examples.

Devika Nair
Software Engineering

Linked List implementation in C language

We have designed and implemented Linked List in C Programming Language. We have create a Node structure in C and implemented all Linked List operations in C.

Subhash Bhandari
Software Engineering

Implementation of ls command in C

In this article, we have implemented the ls command in C using dirent header library. ls command is used to list the files and directories in a given location.

Sahil Silare Sahil Silare
Algorithms

C program to check whether brackets are Balanced in an Equation

We have developed a C program to check whether brackets are Balanced in an Equation using the Stack data structure and solving it in O(N) time.

Abhiram Reddy Duggempudi Abhiram Reddy Duggempudi
Software Engineering

Reverse a String (word by word) in C

In this problem, we have reversed a string or text word by word in C. The strategy to do this is important and tests C implementation skill.

Abhiram Reddy Duggempudi Abhiram Reddy Duggempudi
Software Engineering

Typecasting in C

We have explored Typecasting in the C language. The definition, categories of Typecasting, Why it is used and How, along with many examples so that it will be easy to understand.

Amruta U. Koshe Amruta U. Koshe
Software Engineering

Tough Interview questions on C Programming

These are some of the most tough Interview questions on C Programming which tests your knowledge on how well you know the language. Even if you are not a master of C, you must try it once.

Aditya Chatterjee Aditya Chatterjee
Software Engineering

Basics of "stdio.h" in C

We have explored the standard header library stdio.h in C and specific attributes of Header file like Built in functions, Library Variables and Macro.

Shiva Basava P Shiva Basava P
Software Engineering

Struct pointer in C

In this article, we will learn about the structure pointers , in C/C++ we have a feature to use pointers with Structure. Like pointers to other data types we can use pointer to structure.

Khitish Panigrahi Khitish Panigrahi
Software Engineering

Typedef function pointer in C

The keyword typedef is used to define new data type names in C/C++. Here we should not not mistaken that we are creating any new data type, we should carefully note that we are just giving new names to the data types already available to us by C.

Khitish Panigrahi Khitish Panigrahi
Software Engineering

Header file math.h in C language

math.h header file is a widely used C utility that we can use in C language to perform various mathematical operations like square root, trigonometric functions and a lot more. We have explored this in depth.

Piyush Khurana
Software Engineering

Trigonometric Functions using <math.h> in C

math.h header defines various mathematical functions including trigonometric and hyperbolic functions. All the these predefined trigonometric functions use radians as argument. We have explored all Trigonometric Functions using in C.

Shivangi Sharma
Software Engineering

Linear Search in C Programming Language

We have explored Linear Search algorithm and implemented variants of Linear Search in C Programming Language. The variants we have explored are Linear Search in array in C, Linear Search in Linked List in C, Linear Search in array with duplicates and Linear Search in Linked List with duplicates.

Harini Jeyaraman Harini Jeyaraman
Software Engineering

Complete guide on stdlib.h in C

is the header for the General Purpose Standard Library of C programming language which declares a variety of utility functions for type conversions, memory allocation, process control and other similar tasks.

Vishnu S Reddy Vishnu S Reddy
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