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