×
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.

C Programming

Print the triangular pattern (right angle triangle) in C

In this article, we have take a look at how to print a triangular pattern (right angle triangle) with integers 1 to 15 in C Programming Language.

Arushi Chatterjee
C Programming

Print the 2x3 rectangular matrix in C

In this article, we have take a look at how to print a rectangular matrix of size 2 * 3 with integers in C Programming Language with numbers from 1 to 6.

Arushi Chatterjee
C++

memcmp() function in C++

memcmp() is a C++ function that compares a specified number of characters in two pointer objects.

PV Nikhil
C Programming

typedef struct in C [Explained]

In this article, we have explored the concept of typedef struct in C Programming Language which brings in two core concepts. We have explained the ideas with code examples and differences between typedef struct and struct.

Harshit Raj
C Programming

Designing a console dictionary in C

In this article, we have explored how to design and implement a Dictionary console application in C Programming Language. You should follow this guide and develop your own version. This is a strong addition to SDE Portfolio.

FOUOTSOP FOSSO Patrick
C Programming

C program to add two numbers [Explained for Beginners]

In this article, we have explained how to find the sum of two numbers and write a C program for it taking the two numbers as command line arguments.

OpenGenus Tech Review Team OpenGenus Tech Review Team
C Programming

Find out which date is earlier in C

In this article, we have explained the approach to check which date comes earlier among two dates (in format DD:MM:YYYY) and implemented this approach in C Programming Language.

Arushi Chatterjee
C Programming

Change time from 24 hours format to 12 hours format

In this article, we have explained how to change time from 24 hours format (HH:MM) to 12 hours format (HH:MM + AM or PM) and implemented the approach in C Programming Language.

Arushi Chatterjee
C Programming

Check if given number is even or odd in C

In this article, we have explained how to check if given number is even or odd and implemented the approach in C Programming Language.

Arushi Chatterjee
C++

MemCpy vs MemMove [Explained with code]

In this article, we have explored the differences between the two built-in functions memcpy and memmove of C programming language. Both are part of the C library - .

Nish Patel
C Programming

Initialize struct in C [3 ways]

In this article, we have explored how to initialize struct in C Programming Language using different techniques such as designated initializer, dot operator and more.

Harshit Raj
C Programming

Array of structure in C

In this article, we have explored how to create an Array of structure in C and what is the need of it using a complete C code example.

SHIVAM TRIPATHI
C Programming

Add each digit of a three digit number

Write a program to enter a three digit number and separately print the the digits of the number and add it and provide the implementation in C programming language.

Arushi Chatterjee
C Programming

Find the absolute value of a number

In this article, we have explained how to find the absolute value of a number and implement the program in C Programming Language.

Arushi Chatterjee
C Programming

Separate number from decimal place

In this article, we will solve the problem of separation of number from before the decimal and after and provide the implementation in C programming language.

Arushi Chatterjee
C Programming

Print the pattern in C

Print the following pattern and show its implementation in C programming language using escape sequences like horizontal and vertical tab.

Arushi Chatterjee
C++

[Fixed] fatal error: bits/c++config.h: No such file or directory

In this article, we have explored the reason behind the C++ compilation error "fatal error: bits/c++config.h: No such file or directory" and presented the fix for resolving the error.

Benjamin QoChuk, PhD Benjamin QoChuk, PhD
C Programming

List of Standard Header files in C

C programming language offers 25 standard header files (which is supported by default).

Navneeth
C Programming

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
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