×
Home Discussions Write at Opengenus IQ
×
  • Track your progress
  • RANDOM
  • Join our Internship 🎓
  • 100+ Graph Algorithms
  • 100+ DP Problems
  • 50+ Linked List Problems
  • 50+ Array Problems
  • One Liner
  • 50+ Binary Tree problems
  • #7daysOfCode
  • Linux 💽
  • 🔊 Data Structures
  • Graph Algorithms
  • Dynamic Programming 💑
  • Home

C

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.

C

Clear Console in C

During the execution of the program, the developer needs to clear the screen or remove the previous output for new output. To clear the console screen in the C language many methods are available.

Reshma patil
C++

Definition vs Declaration vs Initialization in C/ C++

In this article, we have covered the differences between 3 core terms Definition, Declaration and Initialization in C and C++ along with code snippets.

kartikeya
C++

Null and void in C and C++

In C and C++ Programming language, NULL and void have two distinct meanings and use cases like NULL reference, void pointer and much more. We have explored this in depth.

Gabriel
C++

Return value of main() in C / C++

The return value of main() function shows how the program exited. The normal exit of program is represented by zero return value. If the code has errors, fault etc., it will be terminated by non-zero value.

Gehad Salem Ahmed
Software Engineering

Power and Exponential functions in math.h Header file in C/ C++

In a simple way, a Library is collection of built in functions. One of the header file of standard C library is "math.h". As the name itself suggests, It defines various mathematical functions.

Sanjay kumar
Software Engineering

__builtin_popcount and POPCNT

We have explored about __builtin_popcount - a built-in function of GCC, which helps us to count the number of 1's(set bits) in an integer in C and C++. POPCNT is the assembly instruction used in __builtin_popcount.

Aditya L Rao
Software Engineering

Structure (struct) in C [Complete Guide]

A structure is defined as a collection of same/different data types. All data items thus grouped logically related and can be accessed using variables.

AASHISH
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
OpenGenus IQ © 2022 All rights reserved â„¢ [email: team@opengenus.org]
Top Posts LinkedIn Twitter