Category: C Programs
Posts of Category: C Programs
Posts of Category: C Programs
Enhancing Python with Custom C Extensions
Enhancing Python with Custom C Extensions Introduction This article is going to highlight the features of CPython's C API which is used to build C extensions for Python. I will be going over the the general wor...Learn MorePythonC ProgramsHow to Create C/C++ Addons in Node
How to Create C/C++ Addons in Node Node.js is great for a lot of reasons, one of which is the speed in which you can build meaningful applications. However, as we all know, this comes at the price of performanc...Learn MoreC ProgramsC++ ProgramsJavaScriptNodejsImplicit Declaration of Function in C
Implicit Declaration of Function in C We are very much familiar with the flow control in C where it follows the Top-Down approach, and when we are writing a C program and if we are using any function, we might ...Learn MoreC ProgramsC TutorialsSparse Matrix in C
Sparse Matrix in C In this tutorial, we are going to learn about the sparse matrix in C. Before we start let us first discuss what a little bit about two-dimensional arrays. A matrix is represented by 2D ...Learn MoreArrayC ProgramsMatrixmalloc() vs calloc() – Difference Between malloc() and calloc() in C
malloc() vs calloc() – Difference Between malloc() and calloc() in C Here in this tutorial you will learn about difference between malloc() and calloc() in C. We all know that memory is available in limited siz...Learn MoreC ProgramsC TutorialsC Program to Read File Line by Line
C Program to Read File Line by Line Here you will get C program to read file line by line. In below program we first open a demo file hello.txt with some text in read mode. Make sure the file is already present...Learn MoreFile HandlingC ProgramsBinary Search in C
Binary Search in C Here you will get program for binary search in C. Binary search algorithm can be applied on a sorted array to search an element. Search begins with comparing middle element of array to target...Learn MoreAlgorithmC ProgramsBinaryHow to Generate Random Number in C and C++?
How to Generate Random Number in C and C++? Here you will get program and learn how to generate random number in C and C++. We can use rand() function to generate random number. It is defined in stdlib.h header...Learn MoreC ProgramsC++ ProgramsC TutorialsFormat Specifiers in C
Format Specifiers in C In this article you will get list of format specifiers in C. Format specifier is used to specify the data type while reading or writing. For example if you want to print value of an integ...Learn MoreC ProgramsC TutorialsDifference Between break and continue in C
**Difference Between break and continue in C** In this tutorial you will learn about difference between break and continue in C. The break statement is used in switch or loops and continue statement is used onl...Learn MoreC ProgramsC TutorialsHow to Swap Two Numbers Without Using Temporary Variable or Arithmetic Operators?
How to Swap Two Numbers Without Using Temporary Variable or Arithmetic Operators? You have done swapping of two numbers using temporary variable or by using arithmetic operators. It can be done in following ...Learn MoreSimpleC ProgramsC++ ProgramsTutorialsC program to produce the folowing design using *'s
C program to produce the folowing design using *'s #include <stdio.h> #include <conio.h> void main() { int i, j, n; char ch = 'A'; clrscr(); //to clear the screen printf("How many ...Learn MorePrint FiguresC Programs