Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C Basics C++ Basics

C Programming Language Standard

The idea of this article is to introduce C standard. What to do when a C program produces different results in two different compilers? For example, consider the fo...
C C Basics system-programming

Program error signals

Signals in computers are a way of communication between the process and the OS. When a running program undergoes some serious error then the OS sends a signal to the ...

Benefits of C language over other programming languages

C is a middle-level programming language developed by Dennis Ritchie during the early 1970s while working at AT&T Bell Labs in the USA. The objective of its devel...
C Quiz C Basics C++ Basics

Compiling a C program:- Behind the Scenes

C is a high level language and it needs a compiler to convert it into an executable code so that the program can be run on our machine. How do we compile and run a C...
C C-Macro & Preprocessor cpp-macros

A C Programming Language Puzzle

Give a = 12 and b = 36 write a C function/macro that returns 3612 without using arithmetic, strings and predefined functions. We strongly recommend you to minimize y...
C Program Output C-Output

Output of the program Dereference, Reference, Dereference, Reference….

Predict the output of below program #include<stdio.h> int main() {  char *ptr = "geeksforgeeks";  printf("%c ", *&am...
C C-Dynamic Memory Allocation system-programming

Memory Layout of C Programs

A typical memory representation of C program consists of following sections. 1. Text segment 2. Initialized data segment 3. Uninitialized data segment 4. Stack 5. He...
C cpp-file-handling C

C program to delete a file

The remove function in C/C++ can be used to delete a file. The function returns 0 if files is deleted successfully, other returns a non-zero value. #include...
C cpp-file-handling C

C Program to print contents of file

fopen() is used to open and fclose() is used to close a file in C #include <stdio.h> #include <stdlib.h> // For exit()    int main()...
C cpp-file-handling C

C Program to merge contents of two files into a third file

Let the given two files be file1.txt and file2.txt. The following are steps to merge. 1) Open file1.txt and file2.txt in read mode. 2) Open file3.txt in write mode....

Subscribe to Our Newsletter